diff --git a/components/shellsettingsplugin/mobileshellsettings.cpp b/components/shellsettingsplugin/mobileshellsettings.cpp index 508426f4..ed3fa567 100644 --- a/components/shellsettingsplugin/mobileshellsettings.cpp +++ b/components/shellsettingsplugin/mobileshellsettings.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -168,6 +169,12 @@ void MobileShellSettings::setConvergenceModeEnabled(bool enabled) void MobileShellSettings::updateNavigationBarsInPlasma(bool navigationPanelEnabled) { + // Do not update panels when not in Plasma Mobile + bool isMobilePlatform = KRuntimePlatform::runtimePlatform().contains("phone"); + if (!isMobilePlatform) { + return; + } + auto message = QDBusMessage::createMethodCall(QLatin1String("org.kde.plasmashell"), QLatin1String("/PlasmaShell"), QLatin1String("org.kde.PlasmaShell"),