Fix settings not saving when zooming map with keys

This commit is contained in:
Zakru 2021-06-15 20:56:06 +03:00
parent 52c965fb6d
commit afc04ae22f

View File

@ -3394,10 +3394,12 @@ impl Hud {
.clamped(1.25, max_zoom / 64.0);
global_state.settings.interface.map_zoom = new_zoom_lvl;
global_state.settings.save_to_file_warn();
} else if global_state.settings.interface.minimap_show {
let new_zoom_lvl = global_state.settings.interface.minimap_zoom * factor;
global_state.settings.interface.minimap_zoom = new_zoom_lvl;
global_state.settings.save_to_file_warn();
}
show.map && global_state.settings.interface.minimap_show