1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-05-01 10:40:16 +08:00

Opt: Add an option to disable reload

This commit is contained in:
18870
2022-01-14 21:34:54 +08:00
parent 52dca3db20
commit c808a7bc9f
6 changed files with 51 additions and 6 deletions

View File

@@ -39,6 +39,10 @@ class Updater(Config, Installer):
self.read()
return datetime.time.fromisoformat(self.config['AutoRestartTime'])
@cached_property
def enabled(self):
return self.bool('EnableReload')
@cached_property
def repo(self):
return self.config['Repository']