diff --git a/src/lms/ui/LmsTheme.cpp b/src/lms/ui/LmsTheme.cpp index 611c0e66..6c6c97a2 100644 --- a/src/lms/ui/LmsTheme.cpp +++ b/src/lms/ui/LmsTheme.cpp @@ -34,6 +34,9 @@ LmsTheme::LmsTheme(Database::User::UITheme theme) void LmsTheme::setTheme(Database::User::UITheme theme) { + if (theme == _theme) + return; + // Hack, use the application interface directly since changing theme is not allowed const auto currentStyleSheets {getStyleSheets(_theme)}; for (auto it {std::crbegin(currentStyleSheets)}; it != std::crend(currentStyleSheets); ++it)