Explorar el Código

UI: Fix theme if apply and cancel in settings

Cancel after apply in settings will set the old theme.
tytan652 hace 3 años
padre
commit
9bd34fe0cc
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      UI/window-basic-settings.cpp

+ 3 - 1
UI/window-basic-settings.cpp

@@ -3053,9 +3053,11 @@ void OBSBasicSettings::SaveGeneralSettings()
 	int themeIndex = ui->theme->currentIndex();
 	QString themeData = ui->theme->itemData(themeIndex).toString();
 
-	if (WidgetChanged(ui->theme))
+	if (WidgetChanged(ui->theme)) {
+		savedTheme = themeData.toStdString();
 		config_set_string(GetGlobalConfig(), "General", "CurrentTheme3",
 				  QT_TO_UTF8(themeData));
+	}
 
 #if defined(_WIN32) || defined(__APPLE__)
 	if (WidgetChanged(ui->enableAutoUpdates))