Fix incorrect colorscheme on startup

This commit is contained in:
Bart De Vries 2024-02-14 11:00:33 +01:00
parent 6e8668e62b
commit be353f7d9e
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ int main(int argc, char *argv[])
qmlRegisterSingletonInstance("org.kde.kasts", 1, 0, "Sync", &Sync::instance());
qmlRegisterSingletonInstance("org.kde.kasts", 1, 0, "SystrayIcon", &SystrayIcon::instance());
qmlRegisterSingletonInstance<ColorSchemer>("org.kde.kasts", 1, 0, "ColorSchemer", &ColorSchemer::instance());
if (SettingsManager::self()->colorScheme().isEmpty()) {
if (!SettingsManager::self()->colorScheme().isEmpty()) {
ColorSchemer::instance().apply(SettingsManager::self()->colorScheme());
}