mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-13 05:20:00 -08:00
Apply else-after-return across the tree (#7884)
This commit is contained in:
parent
e97d3e5519
commit
c27b5e9fcf
22 changed files with 48 additions and 25 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue