fix: do not apply system theme on launch

Closes PrismLauncher/PrismLauncher#490

Regression introduced by PrismLauncher/PrismLauncher#249

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2023-04-08 18:48:02 +02:00
parent ed085630db
commit a988111507
8 changed files with 19 additions and 17 deletions

View File

@ -60,9 +60,13 @@ SystemTheme::SystemTheme()
themeDebugLog() << "System theme not found, defaulted to Fusion";
}
void SystemTheme::apply()
void SystemTheme::apply(bool initial)
{
ITheme::apply();
// See https://github.com/MultiMC/Launcher/issues/1790
// or https://github.com/PrismLauncher/PrismLauncher/issues/490
if (initial)
return;
ITheme::apply(initial);
}
QString SystemTheme::id()