1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-15 21:37:22 +08:00

Opt: Check update event when switching task

This commit is contained in:
18870
2022-01-11 14:26:56 +08:00
parent d74e4b5c8c
commit 0014c18920
3 changed files with 7 additions and 1 deletions

View File

@@ -577,7 +577,6 @@ class AlasGUI(Frame):
clear('updater_loading')
clear('updater_state')
clear('updater_btn')
print(state)
if state == 0:
put_loading('border', 'secondary', 'updater_loading').style(
"--loading-border-fill--")

View File

@@ -88,6 +88,7 @@ class AlasManager:
# Set server before loading any buttons.
import module.config.server as server
from module.config.config import AzurLaneConfig
AzurLaneConfig.stop_event = e
config = AzurLaneConfig(config_name=config_name)
server.server = deep_get(
config.data, keys='Alas.Emulator.Server', default='cn')