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

Fix: Missing stop_event

This commit is contained in:
18870
2022-01-11 15:00:28 +08:00
parent 0ff33e173a
commit 9261934751
2 changed files with 7 additions and 4 deletions

View File

@@ -120,7 +120,7 @@ class AlasGUI(Frame):
elif state == 3:
put_row([
put_loading(shape='grow', color='warning').style(
"--loading-glow--"),
"--loading-grow--"),
None,
put_text(t("Gui.Status.Warning"))
], size='auto 2px 1fr')
@@ -945,7 +945,10 @@ def app():
cdn=cdn,
static_dir=None,
debug=True,
on_startup=[startup, AlasManager.start_alas],
on_startup=[
startup,
lambda: AlasManager.start_alas(ev = updater.event)
],
on_shutdown=[clearup]
)

View File

@@ -169,7 +169,7 @@ class Updater(Config, Installer):
f"Remains: {[alas.config_name for alas in _instances]}")
if self.state == 'cancel':
self.state = 1
AlasManager.start_alas(instances)
AlasManager.start_alas(instances, self.event)
return
time.sleep(0.25)
self._run_update(instances, names)
@@ -189,7 +189,7 @@ class Updater(Config, Installer):
self.state = 'failed'
logger.warning("Update failed")
self.event.clear()
AlasManager.start_alas(instances)
AlasManager.start_alas(instances, self.event)
return False
@staticmethod