mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-20 18:49:28 +08:00
Adj: switch account thread
This commit is contained in:
@@ -256,6 +256,9 @@ class AlasGUI(Frame):
|
||||
self._init_alas_config_watcher()
|
||||
if not self._is_switch_account_watcher_pinned:
|
||||
self._init_alas_switch_account_watcher()
|
||||
_thread_account_switch = threading.Thread(target=self._alas_thread_account_switch)
|
||||
register_thread(_thread_account_switch)
|
||||
_thread_account_switch.start()
|
||||
self._is_switch_account_watcher_pinned = True
|
||||
|
||||
def __init__(self) -> None:
|
||||
@@ -267,9 +270,9 @@ class AlasGUI(Frame):
|
||||
self.alas_mod = "alas"
|
||||
self.alas_config = AzurLaneConfig("template")
|
||||
self._is_switch_account_watcher_pinned = False
|
||||
self.enable_switch = False
|
||||
self.initial()
|
||||
self.account_data: List[AccountGroup] = []
|
||||
self.enable_switch = False
|
||||
|
||||
@use_scope("aside", clear=True)
|
||||
def set_aside(self) -> None:
|
||||
@@ -1517,10 +1520,6 @@ class AlasGUI(Frame):
|
||||
register_thread(_thread_save_config)
|
||||
_thread_save_config.start()
|
||||
|
||||
_thread_account_switch = threading.Thread(target=self._alas_thread_account_switch)
|
||||
register_thread(_thread_account_switch)
|
||||
_thread_account_switch.start()
|
||||
|
||||
if not os.path.exists("./config/account.yaml"):
|
||||
file = open("./config/account.yaml", "w")
|
||||
file.close()
|
||||
|
||||
Reference in New Issue
Block a user