diff --git a/src/menu.rs b/src/menu.rs index 4c91c3c..ae4c783 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -625,6 +625,7 @@ pub fn handle_input( if prefs.light_amp > 3 { prefs.light_amp = 0; } + prefs.save(); ew_updateoverlays.send(hud::UpdateOverlayVisibility); ew_updatemenu.send(UpdateMenuEvent); } @@ -633,6 +634,7 @@ pub fn handle_input( if prefs.flashlight_power > 3 { prefs.flashlight_power = 0; } + prefs.save(); ew_game.send(GameEvent::UpdateFlashlight); ew_updatemenu.send(UpdateMenuEvent); } @@ -641,6 +643,7 @@ pub fn handle_input( if prefs.thruster_boost > 2 { prefs.thruster_boost = 0; } + prefs.save(); ew_updatemenu.send(UpdateMenuEvent); } MenuAction::ModReactor => {