Reformat files with black

This commit is contained in:
Orsiris de Jong 2023-02-05 18:24:23 +01:00
parent e64a426bbc
commit e65b10ab77
2 changed files with 3 additions and 3 deletions

View file

@ -597,7 +597,7 @@ def main_gui(config_dict: dict, config_file: str, version_string: str):
if event == "configure":
config_dict = config_gui(config_dict, config_file)
# Make sure we trigger a GUI refresh when configuration is changed
event = 'state-button'
event = "state-button"
if event == _t("generic.destination"):
try:
if backend_type:

View file

@ -20,9 +20,9 @@ def minimize_current_window():
"""
Minimizes current commandline window in GUI mode
"""
if os.name == 'nt':
if os.name == "nt":
current_executable = os.path.abspath(sys.argv[0])
# console window will have the name of current executable
hwndMain = win32gui.FindWindow(None, current_executable)
if hwndMain:
win32gui.ShowWindow(hwndMain, win32con.SW_MINIMIZE)
win32gui.ShowWindow(hwndMain, win32con.SW_MINIMIZE)