mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-17 03:44:36 +00:00
Qt: Fix hang on theme change on MacOS
This commit is contained in:
@@ -536,7 +536,11 @@ void QtHost::UpdateThemeOnStyleChange()
|
||||
QIcon::setThemeName(new_theme_name);
|
||||
|
||||
if (NativeThemeStylesheetNeedsUpdate())
|
||||
qApp->setStyleSheet(GetNativeThemeStylesheet());
|
||||
{
|
||||
const QString stylesheet = GetNativeThemeStylesheet();
|
||||
if (qApp->styleSheet() != stylesheet)
|
||||
qApp->setStyleSheet(stylesheet);
|
||||
}
|
||||
}
|
||||
|
||||
const char* Host::GetDefaultFullscreenUITheme()
|
||||
|
||||
Reference in New Issue
Block a user