mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-18 07:53:11 +03:00
Fixed linting issues with EDMarketConnector.py
This commit is contained in:
parent
df31aed6c5
commit
ecf16762d0
@ -17,6 +17,7 @@ from os.path import dirname, join
|
|||||||
from sys import platform
|
from sys import platform
|
||||||
from time import localtime, strftime, time
|
from time import localtime, strftime, time
|
||||||
from typing import TYPE_CHECKING, Optional, Tuple
|
from typing import TYPE_CHECKING, Optional, Tuple
|
||||||
|
|
||||||
from infi.systray import SysTrayIcon
|
from infi.systray import SysTrayIcon
|
||||||
|
|
||||||
# Have this as early as possible for people running EDMarketConnector.exe
|
# Have this as early as possible for people running EDMarketConnector.exe
|
||||||
@ -1395,7 +1396,8 @@ class AppWindow(object):
|
|||||||
else:
|
else:
|
||||||
self.exit()
|
self.exit()
|
||||||
|
|
||||||
def exit_tray(self, systray):
|
def exit_tray(self, systray) -> None:
|
||||||
|
"""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:
|
||||||
@ -1403,7 +1405,8 @@ class AppWindow(object):
|
|||||||
exit_thread.setDaemon(True)
|
exit_thread.setDaemon(True)
|
||||||
exit_thread.start()
|
exit_thread.start()
|
||||||
|
|
||||||
def exit(self):
|
def exit(self) -> None:
|
||||||
|
"""Actual application shutdown."""
|
||||||
config.set_shutdown() # Signal we're in shutdown now.
|
config.set_shutdown() # Signal we're in shutdown now.
|
||||||
|
|
||||||
# http://core.tcl.tk/tk/tktview/c84f660833546b1b84e7
|
# http://core.tcl.tk/tk/tktview/c84f660833546b1b84e7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user