Commit b6b008bb authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Fix launcher URL comparison

Launcher URL is a QUrl which doesn't strictly map empty string.

Differential Revision: https://phabricator.kde.org/D20810
parent b8d753f4
......@@ -54,7 +54,7 @@ PlasmaComponents.ContextMenu {
minimumWidth: visualParent.width
onStatusChanged: {
if (visualParent && get(atm.LauncherUrlWithoutIcon) !== "" && status == PlasmaComponents.DialogStatus.Open) {
if (visualParent && get(atm.LauncherUrlWithoutIcon) != "" && status == PlasmaComponents.DialogStatus.Open) {
launcherToggleAction.checked = (tasksModel.launcherPosition(get(atm.LauncherUrlWithoutIcon)) !== -1);
activitiesDesktopsMenu.refresh();
......@@ -276,7 +276,7 @@ PlasmaComponents.ContextMenu {
id: startNewInstanceItem
visible: (visualParent && get(atm.IsLauncher) !== true && get(atm.IsStartup) !== true)
enabled: visualParent && get(atm.LauncherUrlWithoutIcon) !== ""
enabled: visualParent && get(atm.LauncherUrlWithoutIcon) != ""
text: i18n("Start New Instance")
icon: "list-add-symbolic"
......@@ -617,7 +617,7 @@ PlasmaComponents.ContextMenu {
&& plasmoid.immutability !== PlasmaCore.Types.SystemImmutable
&& (activityInfo.numberOfRunningActivities < 2)
enabled: visualParent && get(atm.LauncherUrlWithoutIcon) !== ""
enabled: visualParent && get(atm.LauncherUrlWithoutIcon) != ""
checkable: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment