mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Don't save settings on load, only on edit
This commit is contained in:
@@ -476,6 +476,7 @@ static void infrared_load_settings(InfraredApp* infrared) {
|
||||
INFRARED_SETTINGS_MAGIC,
|
||||
INFRARED_SETTINGS_VERSION)) {
|
||||
FURI_LOG_D(TAG, "Failed to load settings, using defaults");
|
||||
// infrared_save_settings(infrared);
|
||||
}
|
||||
|
||||
infrared_set_tx_pin(infrared, settings.tx_pin);
|
||||
|
||||
@@ -19,7 +19,7 @@ void bt_settings_load(BtSettings* bt_settings) {
|
||||
if(!success) {
|
||||
FURI_LOG_W(TAG, "Failed to load settings, using defaults");
|
||||
memset(bt_settings, 0, sizeof(BtSettings));
|
||||
bt_settings_save(bt_settings);
|
||||
// bt_settings_save(bt_settings);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ void desktop_settings_load(DesktopSettings* settings) {
|
||||
if(!success) {
|
||||
FURI_LOG_W(TAG, "Failed to load file, using defaults");
|
||||
memset(settings, 0, sizeof(DesktopSettings));
|
||||
desktop_settings_save(settings);
|
||||
// desktop_settings_save(settings);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ void dolphin_state_load(DolphinState* dolphin_state) {
|
||||
memset(dolphin_state, 0, sizeof(DolphinState));
|
||||
|
||||
dolphin_state->dirty = true;
|
||||
dolphin_state_save(dolphin_state);
|
||||
// dolphin_state_save(dolphin_state);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ void expansion_settings_load(ExpansionSettings* settings) {
|
||||
if(!success) {
|
||||
FURI_LOG_W(TAG, "Failed to load file, using defaults");
|
||||
memset(settings, 0, sizeof(ExpansionSettings));
|
||||
expansion_settings_save(settings);
|
||||
// expansion_settings_save(settings);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -519,7 +519,7 @@ static void notification_storage_callback(const void* message, void* context) {
|
||||
|
||||
static void notification_apply_settings(NotificationApp* app) {
|
||||
if(!notification_load_settings(app)) {
|
||||
notification_save_settings(app);
|
||||
// notification_save_settings(app);
|
||||
}
|
||||
|
||||
notification_apply_lcd_contrast(app);
|
||||
|
||||
Reference in New Issue
Block a user