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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue