0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

UI: Fix theme if apply and cancel in settings

Cancel after apply in settings will set the old theme.
This commit is contained in:
tytan652 2022-10-16 13:04:24 +02:00 committed by Ryan Foster
parent 03490a4a12
commit 9bd34fe0cc

View File

@ -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))