mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-04 19:03:42 +00:00
Avoid allocations for case-insensetive compare
This commit is contained in:
@@ -465,7 +465,7 @@ std::optional<bool> IsDarkMode() {
|
||||
|
||||
if (!themeName.has_value()) {
|
||||
return std::nullopt;
|
||||
} else if (themeName->toLower().contains(qsl("-dark"))) {
|
||||
} else if (themeName->contains(qsl("-dark"), Qt::CaseInsensitive)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user