[Scummvm-git-logs] scummvm master -> 7b9ae88050d1ce7ba5c4868a7d626c3e8a55dba5

criezy noreply at scummvm.org
Thu May 25 21:28:06 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7b9ae88050 UPDATES: Fix saving the updates_check frequency in opt-in wizard


Commit: 7b9ae88050d1ce7ba5c4868a7d626c3e8a55dba5
    https://github.com/scummvm/scummvm/commit/7b9ae88050d1ce7ba5c4868a7d626c3e8a55dba5
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2023-05-25T22:26:37+01:00

Commit Message:
UPDATES: Fix saving the updates_check frequency in opt-in wizard

When ScummVM is started, if the updates_check value is not defined
in the config file and ScummVM was compiled with the Updates feature
(on macOS or Windows), an opt-in dialog asks the user if he wants
to check for available updates periodically. This should only be
shown once. However as ConfMan was not flushed to disk, it was
asked again the next time ScummVM is started, and again, until the
user accessed the options to change something else and this was
finally flushed to disk.

Changed paths:
    gui/updates-dialog.cpp


diff --git a/gui/updates-dialog.cpp b/gui/updates-dialog.cpp
index 10b6bd9d819..b63310e9b83 100644
--- a/gui/updates-dialog.cpp
+++ b/gui/updates-dialog.cpp
@@ -118,6 +118,7 @@ UpdatesDialog::UpdatesDialog() : Dialog(30, 20, 260, 124) {
 void UpdatesDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) {
 	if (cmd == kProceedCmd) {
 		ConfMan.setInt("updates_check", _updatesPopUp->getSelectedTag());
+		ConfMan.flushToDisk();
 
 		if (g_system->getUpdateManager()) {
 			if (_updatesPopUp->getSelectedTag() == Common::UpdateManager::kUpdateIntervalNotSupported) {




More information about the Scummvm-git-logs mailing list