[Scummvm-git-logs] scummvm master -> fcb2182266bbc3bd1010185472a0fe9b9b02634e

sev- noreply at scummvm.org
Sun Jan 8 13:10:36 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:
fcb2182266 GUI: Move the icon-related code from the DownloadPacksDialog to the options


Commit: fcb2182266bbc3bd1010185472a0fe9b9b02634e
    https://github.com/scummvm/scummvm/commit/fcb2182266bbc3bd1010185472a0fe9b9b02634e
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-01-08T14:10:27+01:00

Commit Message:
GUI: Move the icon-related code from the DownloadPacksDialog to the options

Changed paths:
    gui/downloadpacksdialog.cpp
    gui/options.cpp


diff --git a/gui/downloadpacksdialog.cpp b/gui/downloadpacksdialog.cpp
index fd4e57c80e1..f39bed3e835 100644
--- a/gui/downloadpacksdialog.cpp
+++ b/gui/downloadpacksdialog.cpp
@@ -141,7 +141,6 @@ void DialogState::downloadFileCallback(Networking::DataResponse r) {
 	if (response->eos) {
 		if (!takeOneFile()) {
 			state = kDownloadComplete;
-			g_gui.initIconsSet();
 			if (dialog)
 				dialog->sendCommand(kDownloadEndedCmd, 0);
 			return;
@@ -473,9 +472,6 @@ void DownloadPacksDialog::clearCache() {
 		}
 		g_state->fileHash.clear();
 
-		// Reload (now empty) icons set
-		g_gui.initIconsSet();
-
 		// Fetch current packs list file and re-trigger downloads
 		g_state->downloadList();
 		calculateList();
diff --git a/gui/options.cpp b/gui/options.cpp
index c8f5942b296..3105eb0147a 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -3112,6 +3112,9 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
 	case kUpdateIconsCmd: {
 		DownloadPacksDialog dia(_("icon packs"), "LIST", "gui-icons*.dat");
 		dia.runModal();
+
+		// Refresh the icons
+		g_gui.initIconsSet();
 		break;
 	}
 #endif




More information about the Scummvm-git-logs mailing list