Retain tethering status between reboots

This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent 34e5afb096
commit a37d8e5830
6 changed files with 18 additions and 0 deletions

View File

@@ -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();