Skip to content

Commit

Permalink
Save prefs to disk when exiting the Preferences dialog
Browse files Browse the repository at this point in the history
Fixes #1809.
  • Loading branch information
Vultraz committed Feb 21, 2018
1 parent a2eb75d commit f2202fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/dialogs/preferences_dialog.cpp
Expand Up @@ -1062,6 +1062,10 @@ void preferences_dialog::on_tab_select(window& window)
void preferences_dialog::post_show(window& /*window*/)
{
save_hotkeys();

// Save new prefs to disk. This also happens on app close, but doing
// it here too ensures nothing is lost in case of, say, a crash.
write_preferences();
}

} // namespace dialogs
Expand Down

0 comments on commit f2202fc

Please sign in to comment.