1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 13:29:25 +08:00

add: update every time and restart every time setting for hook

This commit is contained in:
0O0o0oOoO00
2025-09-13 00:08:48 +08:00
parent 2defdd6f4b
commit 8d7f718285
11 changed files with 52 additions and 1 deletions

View File

@@ -441,6 +441,9 @@ class CrackResource:
if self.update_server is None:
logger.info("No update server, skip update check, use local resource")
return
if not self.config.full_config.Hook_HookGeneral_UpdateEveryTime:
logger.info("Update skip, use local resource")
return
with open(self.version_file, "r") as f:
local_version = json.load(f)