1
1
mirror of https://github.com/KenanZhu/AutoLibrary.git synced 2026-06-17 23:13:03 +08:00

fix(AutoLib): correct config key from 'run/mode' to 'mode/run_mode'

Update dictionary key retrieval to use the correct
key 'mode/run_mode' instead of the outdated 'run/mode'.

This aligns the code with the recent configuration changes.
This commit is contained in:
2025-11-07 22:58:43 +08:00
parent 30db2fbf9a
commit f13d983124
+1 -1
View File
@@ -161,7 +161,7 @@ class AutoLib(MsgBase):
"""
Here, we collect the run mode from the config file.
"""
run_mode = self.__system_config_reader.get("run/mode", 1)
run_mode = self.__system_config_reader.get("mode/run_mode", 0)
run_mode = {
"auto_reserve": run_mode&0x1,
"auto_checkin": run_mode&0x2,