Skip to content

Commit

Permalink
save config directly after accepting changes
Browse files Browse the repository at this point in the history
user have experienced unexpected data loss by crashes as the changes
were saved only after closing txs which some users rarely do
fixes #3740
  • Loading branch information
sunderme committed Jul 27, 2024
1 parent 57cc155 commit 15307ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/configmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1933,6 +1933,9 @@ bool ConfigManager::execConfigDialog(QWidget *parentToDialog)
guiSecondaryToolbarIconSize = confDlg->ui.horizontalSliderCentraIcon->value();
guiSymbolGridIconSize = confDlg->ui.horizontalSliderSymbol->value();
guiPDFToolbarIconSize = confDlg->ui.horizontalSliderPDF->value();

// save new settings directly to disk as users tend to close txs rarely (#3740)
saveSettings();
} else {
// GUI scaling
confDlg->ui.horizontalSliderIcon->setValue(guiToolbarIconSize);
Expand Down

0 comments on commit 15307ae

Please sign in to comment.