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:
parent
03490a4a12
commit
9bd34fe0cc
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user