Avoid allocations for case-insensetive compare

This commit is contained in:
Ilya Fedin
2021-03-15 22:07:14 +04:00
committed by John Preston
parent 4659cc50f2
commit 0c8febce9c
2 changed files with 2 additions and 2 deletions
@@ -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;
}