after merge fixes

This commit is contained in:
MX
2024-08-10 14:42:11 +03:00
parent bf6c6c231f
commit 6c0dadad3f
4 changed files with 14 additions and 9 deletions

View File

@@ -445,6 +445,12 @@ static Power* power_alloc(void) {
// State initialization
power->power_off_timeout = POWER_OFF_TIMEOUT_S;
power->show_battery_low_warning = true;
// Load UI settings
DesktopSettings* settings = malloc(sizeof(DesktopSettings));
desktop_settings_load(settings);
power->displayBatteryPercentage = settings->displayBatteryPercentage;
free(settings);
// Gui
Gui* gui = furi_record_open(RECORD_GUI);