config: Update some 'callers' of config.shutting_down for it being a property

This commit is contained in:
Athanasius committed 2021-04-01 14:45:48 +01:00
1 parent 3ed08f0f7e
commit a8aab186bf
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -145,7 +145,7 @@ class Dashboard(FileSystemEventHandler):
# Can be called either in watchdog thread or, if polling, in main thread.
def process(self, logfile=None):
if config.shutting_down():
if config.shutting_down:
return
try:
+1 -1
View File
@@ -128,7 +128,7 @@ if platform == 'darwin':
self.acquire_state = HotkeyMgr.ACQUIRE_INACTIVE
def _acquire_poll(self):
if config.shutting_down():
if config.shutting_down:
return
# No way of signalling to Tkinter from within the monkey-patched event handler that doesn't
+1 -1
View File
@@ -371,7 +371,7 @@ def show_error(err):
:param err:
.. versionadded:: 2.3.7
"""
if config.shutting_down():
if config.shutting_down:
logger.info(f'Called during shutdown: "{str(err)}"')
return