mirror of
https://github.com/netinvent/npbackup.git
synced 2024-09-20 14:56:14 +08:00
Reformat files with black
This commit is contained in:
parent
e64a426bbc
commit
e65b10ab77
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue