1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 02:48:23 +08:00

Opt: Show commit info in updater

This commit is contained in:
18870
2022-01-12 22:27:56 +08:00
parent bff8296af5
commit c8a95970d5
13 changed files with 171 additions and 58 deletions

View File

@@ -57,7 +57,7 @@ def name_to_function(name):
class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig):
stop_event: threading.Event
stop_event: threading.Event = None
bound = {}
# Class property
@@ -406,7 +406,7 @@ class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig):
bool: If task switched
"""
# Update event
if hasattr(self, 'stop_event'):
if self.stop_event is not None:
if self.stop_event.is_set():
return True
prev = self.task