mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-23 05:42:07 +08:00
manager: default driverview to False (#23492)
old-commit-hash: 6e817f9eb5
This commit is contained in:
@@ -67,6 +67,7 @@ class ManagerProcess(ABC):
|
||||
daemon = False
|
||||
sigkill = False
|
||||
persistent = False
|
||||
driverview = False
|
||||
proc: Optional[Process] = None
|
||||
enabled = True
|
||||
name = ""
|
||||
@@ -291,8 +292,7 @@ def ensure_running(procs: ValuesView[ManagerProcess], started: bool, driverview:
|
||||
p.stop(block=False)
|
||||
elif p.persistent:
|
||||
p.start()
|
||||
elif getattr(p, 'driverview', False) and driverview:
|
||||
# TODO: why is driverview an argument here? can this be done with the name?
|
||||
elif p.driverview and driverview:
|
||||
p.start()
|
||||
elif started:
|
||||
p.start()
|
||||
|
||||
Reference in New Issue
Block a user