Apply else-after-return across the tree (#7884)

This commit is contained in:
AI-scor 2026-11-10 20:41:46 +01:00 • committed by GitHub
parent e97d3e5519
commit c27b5e9fcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 48 additions and 25 deletions

View file

@ -251,7 +251,8 @@ bool ThemeManager::isDarkMode(const QString &themeDirPath) const
const ThemeConfig themeConfig = loadColorSchemeConfig(themeDirPath, systemThemeDir);
if (themeConfig.colorScheme.compare("Dark", Qt::CaseInsensitive) == 0) {
return true;
} else if (themeConfig.colorScheme.compare("Light", Qt::CaseInsensitive) == 0) {
}
if (themeConfig.colorScheme.compare("Light", Qt::CaseInsensitive) == 0) {
return false;
} else {
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)