Qt: Fix non-native message boxes in Dark Fusion on MacOS

This commit is contained in:
Stenzek
2025-11-15 17:47:14 +10:00
parent c5f60c13b3
commit c8ef05a16d

View File

@@ -247,7 +247,7 @@ void QtUtils::SetMessageBoxStyle(QMessageBox* const dlg, Qt::WindowModality moda
dlg->setWindowModality(modality);
#ifdef __APPLE__
// Can't have a stylesheet set even if it doesn't affect the widget.
if (QtHost::NativeThemeStylesheetNeedsUpdate())
if (QtHost::IsStyleSheetApplicationTheme() || QtHost::NativeThemeStylesheetNeedsUpdate())
{
dlg->setStyleSheet("");
dlg->setAttribute(Qt::WA_StyleSheet, false);