Skip to content

Commit 1a41b3f

Browse files
committed
Small cleanup
1 parent 1dcda9a commit 1a41b3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wwrando.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,11 @@ def try_fix_taskbar_icon():
273273
if not is_windows():
274274
return
275275

276-
# Setting the app user model ID is necessary for Windows to display a custom taskbar icon when running the randomizer from source.
276+
# Setting the app user model ID is necessary for Windows to display a custom taskbar icon when running from source.
277277
import ctypes
278278
app_id = "LagoLunatic.WindWakerRandomizer"
279279
# This function can technically be null because versions of Windows before Windows 7 don't support it.
280-
SetCurrentProcessExplicitAppUserModelID = getattr(ctypes.windll.shell32, "SetCurrentProcessExplicitAppUserModelID", None)
281-
if SetCurrentProcessExplicitAppUserModelID is not None:
280+
if hasattr(ctypes.windll.shell32, "SetCurrentProcessExplicitAppUserModelID"):
282281
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(app_id)
283282

284283
def get_dark_mode_palette(app):
@@ -317,7 +316,8 @@ def run_with_ui(args):
317316
from wwr_ui import qt_init
318317
from qtpy.QtCore import Qt, QTimer
319318
from qtpy.QtWidgets import QApplication
320-
from qtpy import QT_VERSION
319+
from qtpy import QT_VERSION # pyright: ignore [reportAttributeAccessIssue]
320+
QT_VERSION: str
321321
from wwr_ui.randomizer_window import WWRandomizerWindow
322322

323323
try_fix_taskbar_icon()

0 commit comments

Comments
 (0)