mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-05 11:15:40 +08:00
Merge branch 'master-new' into feature/external-storage
This commit is contained in:
@@ -20,6 +20,11 @@ class UIStateSP : public UIState {
|
||||
public:
|
||||
UIStateSP(QObject *parent = 0);
|
||||
void updateStatus() override;
|
||||
inline bool engaged() const override {
|
||||
return scene.started && (
|
||||
(*sm)["selfdriveState"].getSelfdriveState().getEnabled() || (*sm)["selfdriveStateSP"].getSelfdriveStateSP().getMads().getEnabled()
|
||||
);
|
||||
}
|
||||
void setSunnylinkRoles(const std::vector<RoleModel> &roles);
|
||||
void setSunnylinkDeviceUsers(const std::vector<UserModel> &users);
|
||||
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ class UIState : public QObject {
|
||||
public:
|
||||
UIState(QObject* parent = 0);
|
||||
virtual void updateStatus();
|
||||
inline bool engaged() const {
|
||||
virtual inline bool engaged() const {
|
||||
return scene.started && (*sm)["selfdriveState"].getSelfdriveState().getEnabled();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user