mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-03 22:53:44 +08:00
FrogPilot features - Store user's toggles in storage
This commit is contained in:
@@ -321,7 +321,12 @@ def manager_init(frogpilot_functions) -> None:
|
||||
# set unset params
|
||||
for k, v in default_params:
|
||||
if params.get(k) is None or params.get_bool("DoToggleReset"):
|
||||
params.put(k, v)
|
||||
if params_storage.get(k) is None:
|
||||
params.put(k, v)
|
||||
else:
|
||||
params.put(k, params_storage.get(k))
|
||||
else:
|
||||
params_storage.put(k, params.get(k))
|
||||
|
||||
params.put_bool("DoToggleReset", False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user