feat: add ability to disable trainer warning on shutdown (#4831)

Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
3djc
2024-05-08 11:19:18 +10:00
committed by GitHub
co-authored by philmoz Peter Feerick
parent acd34e7fc9
commit 09d4066a23
41 changed files with 944 additions and 849 deletions
+6
View File
@@ -441,6 +441,12 @@ class AlarmsPage : public SubPage
new ToggleSwitch(line, rect_t{},
GET_SET_INVERTED(g_eeGeneral.disableRssiPoweroffAlarm));
line = body->newLine(grid);
// Trainer shutdown alarm
new StaticText(line, rect_t{}, STR_TRAINER_SHUTDOWN_ALARM);
new ToggleSwitch(line, rect_t{},
GET_SET_INVERTED(g_eeGeneral.disableTrainerPoweroffAlarm));
line = body->newLine(grid);
}
};