Retain tethering status between reboots
This commit is contained in:
@@ -342,6 +342,7 @@ void UIState::updateStatus() {
|
||||
started_prev = scene.started;
|
||||
scene.world_objects_visible = false;
|
||||
emit offroadTransition(!scene.started);
|
||||
wifi->setTetheringEnabled(scene.started && scene.tethering_enabled);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -365,6 +366,8 @@ UIState::UIState(QObject *parent) : QObject(parent) {
|
||||
QObject::connect(timer, &QTimer::timeout, this, &UIState::update);
|
||||
timer->start(1000 / UI_FREQ);
|
||||
|
||||
wifi = new WifiManager(this);
|
||||
|
||||
scene.screen_brightness = params.getInt("ScreenBrightness");
|
||||
|
||||
setDefaultParams();
|
||||
|
||||
Reference in New Issue
Block a user