mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-07 19:03:23 +03:00
Formatting fixes
This commit is contained in:
parent
ecf16762d0
commit
6c0437642e
@ -335,7 +335,7 @@ class AppWindow(object):
|
|||||||
|
|
||||||
self.only_tray_close = 0
|
self.only_tray_close = 0
|
||||||
|
|
||||||
def open_window(systray):
|
def open_window(systray) -> None:
|
||||||
self.only_tray_close = 2
|
self.only_tray_close = 2
|
||||||
shutdown_thread = threading.Thread(target=systray.shutdown)
|
shutdown_thread = threading.Thread(target=systray.shutdown)
|
||||||
shutdown_thread.setDaemon(True)
|
shutdown_thread.setDaemon(True)
|
||||||
@ -1393,6 +1393,7 @@ class AppWindow(object):
|
|||||||
if value:
|
if value:
|
||||||
self.w.withdraw()
|
self.w.withdraw()
|
||||||
self.systray.start()
|
self.systray.start()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.exit()
|
self.exit()
|
||||||
|
|
||||||
@ -1400,6 +1401,7 @@ class AppWindow(object):
|
|||||||
"""Tray icon is shutting down."""
|
"""Tray icon is shutting down."""
|
||||||
if self.only_tray_close > 0:
|
if self.only_tray_close > 0:
|
||||||
self.only_tray_close -= 1
|
self.only_tray_close -= 1
|
||||||
|
|
||||||
else:
|
else:
|
||||||
exit_thread = threading.Thread(target=self.exit)
|
exit_thread = threading.Thread(target=self.exit)
|
||||||
exit_thread.setDaemon(True)
|
exit_thread.setDaemon(True)
|
||||||
|
2
prefs.py
2
prefs.py
@ -636,7 +636,7 @@ class PreferencesDialog(tk.Toplevel):
|
|||||||
# Appearance theme and language setting
|
# Appearance theme and language setting
|
||||||
self.lang = tk.StringVar(value=self.languages.get(config.get_str('language'), _('Default')))
|
self.lang = tk.StringVar(value=self.languages.get(config.get_str('language'), _('Default')))
|
||||||
self.always_ontop = tk.BooleanVar(value=bool(config.get_int('always_ontop')))
|
self.always_ontop = tk.BooleanVar(value=bool(config.get_int('always_ontop')))
|
||||||
self.close_system_tray = tk.BooleanVar(value=bool(config.get_int('close_system_tray')))
|
self.close_system_tray = tk.BooleanVar(value=config.get_bool('close_system_tray'))
|
||||||
self.theme = tk.IntVar(value=config.get_int('theme'))
|
self.theme = tk.IntVar(value=config.get_int('theme'))
|
||||||
self.theme_colors = [config.get_str('dark_text'), config.get_str('dark_highlight')]
|
self.theme_colors = [config.get_str('dark_text'), config.get_str('dark_highlight')]
|
||||||
self.theme_prompts = [
|
self.theme_prompts = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user