UI: Don't set theme if it didn't change

If the user just reselects the theme they're already on, we shouldn't
set it again, as setting a theme always introduces issues (that are
especially visible on macOS and Linux).
master
gxalpha 2022-08-17 17:28:13 +02:00 committed by Jim
parent 8b370c4218
commit b4a2eacba7
1 changed files with 2 additions and 1 deletions

View File

@ -3927,7 +3927,8 @@ void OBSBasicSettings::on_theme_activated(int idx)
{
QString currT = ui->theme->itemData(idx).toString();
App()->SetTheme(currT.toUtf8().constData());
if (currT != App()->GetTheme())
App()->SetTheme(currT.toUtf8().constData());
}
void OBSBasicSettings::on_listWidget_itemSelectionChanged()