Offline Mode

Added button and toggle to allow the device to be offline indefinitely.
This commit is contained in:
FrogAi
2024-02-27 16:34:47 -07:00
parent 232c2bd713
commit 55313e6206
7 changed files with 21 additions and 2 deletions

View File

@@ -302,7 +302,7 @@ def thermald_thread(end_event, hw_queue) -> None:
# **** starting logic ****
startup_conditions["up_to_date"] = params.get("Offroad_ConnectivityNeeded") is None or params.get_bool("DisableUpdates") or params.get_bool("SnoozeUpdate")
startup_conditions["up_to_date"] = (params.get("OfflineMode") and params.get("FireTheBabysitter")) or params.get("Offroad_ConnectivityNeeded") is None or params.get_bool("DisableUpdates") or params.get_bool("SnoozeUpdate")
startup_conditions["not_uninstalling"] = not params.get_bool("DoUninstall")
startup_conditions["accepted_terms"] = params.get("HasAcceptedTerms") == terms_version