core: Require KDE only when running in KDE

KDE style might not be available everywhere. Better to depend on default
style and allow users to override it with style settings.
This commit is contained in:
Michal Hrusecky 2024-12-25 20:24:51 +01:00
parent ae7c5be24c
commit 072d4c7740
No known key found for this signature in database
GPG key ID: 7B7562FE6F4D91EF

View file

@ -61,7 +61,7 @@ void CAgent::initAuthPrompt() {
authState.qmlIntegration = new CQMLIntegration();
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE"))
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE") && !qEnvironmentVariableIsEmpty("KDE_FULL_SESSION"))
QQuickStyle::setStyle("org.kde.desktop");
authState.qmlEngine = new QQmlApplicationEngine();