From b4a2eacba744ca52f0356e7b8c4c69156e52b2ac Mon Sep 17 00:00:00 2001 From: gxalpha Date: Wed, 17 Aug 2022 17:28:13 +0200 Subject: [PATCH] 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). --- UI/window-basic-settings.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/window-basic-settings.cpp b/UI/window-basic-settings.cpp index a7847fd01..53eaba357 100644 --- a/UI/window-basic-settings.cpp +++ b/UI/window-basic-settings.cpp @@ -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()