mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Skip empty parts in QT_QPA_PLATFORMTHEME
This commit is contained in:
parent
0165e31ca7
commit
ab13d9bdaf
1 changed files with 3 additions and 1 deletions
|
@ -298,7 +298,9 @@ bool IsStaticBinary() {
|
||||||
bool IsGtkIntegrationForced() {
|
bool IsGtkIntegrationForced() {
|
||||||
#ifndef TDESKTOP_DISABLE_GTK_INTEGRATION
|
#ifndef TDESKTOP_DISABLE_GTK_INTEGRATION
|
||||||
static const auto Result = [&] {
|
static const auto Result = [&] {
|
||||||
const auto platformThemes = QString::fromUtf8(qgetenv("QT_QPA_PLATFORMTHEME")).split(':');
|
const auto platformThemes = QString::fromUtf8(qgetenv("QT_QPA_PLATFORMTHEME"))
|
||||||
|
.split(':', QString::SkipEmptyParts);
|
||||||
|
|
||||||
return platformThemes.contains(qstr("gtk3"), Qt::CaseInsensitive)
|
return platformThemes.contains(qstr("gtk3"), Qt::CaseInsensitive)
|
||||||
|| platformThemes.contains(qstr("gtk2"), Qt::CaseInsensitive);
|
|| platformThemes.contains(qstr("gtk2"), Qt::CaseInsensitive);
|
||||||
}();
|
}();
|
||||||
|
|
Loading…
Add table
Reference in a new issue