Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/ContextMenu.qml
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 40 | placement: { | |||
---|---|---|---|---|---|
47 | } else { | 47 | } else { | ||
48 | return PlasmaCore.Types.TopPosedLeftAlignedPopup; | 48 | return PlasmaCore.Types.TopPosedLeftAlignedPopup; | ||
49 | } | 49 | } | ||
50 | } | 50 | } | ||
51 | 51 | | |||
52 | minimumWidth: visualParent.width | 52 | minimumWidth: visualParent.width | ||
53 | 53 | | |||
54 | onStatusChanged: { | 54 | onStatusChanged: { | ||
55 | if (visualParent && get(atm.LauncherUrlWithoutIcon) != null && status == PlasmaComponents.DialogStatus.Open) { | 55 | if (visualParent && get(atm.LauncherUrlWithoutIcon) != "" && status == PlasmaComponents.DialogStatus.Open) { | ||
56 | launcherToggleAction.checked = (tasksModel.launcherPosition(get(atm.LauncherUrlWithoutIcon)) != -1); | 56 | launcherToggleAction.checked = (tasksModel.launcherPosition(get(atm.LauncherUrlWithoutIcon)) != -1); | ||
57 | activitiesDesktopsMenu.refresh(); | 57 | activitiesDesktopsMenu.refresh(); | ||
58 | 58 | | |||
59 | } else if (status == PlasmaComponents.DialogStatus.Closed) { | 59 | } else if (status == PlasmaComponents.DialogStatus.Closed) { | ||
60 | menu.destroy(); | 60 | menu.destroy(); | ||
61 | backend.ungrabMouse(visualParent); | 61 | backend.ungrabMouse(visualParent); | ||
62 | } | 62 | } | ||
63 | } | 63 | } | ||
▲ Show 20 Lines • Show All 365 Lines • ▼ Show 20 Line(s) | 420 | PlasmaComponents.MenuItem { | |||
429 | 429 | | |||
430 | onClicked: tasksModel.requestToggleMaximized(modelIndex) | 430 | onClicked: tasksModel.requestToggleMaximized(modelIndex) | ||
431 | } | 431 | } | ||
432 | 432 | | |||
433 | PlasmaComponents.MenuItem { | 433 | PlasmaComponents.MenuItem { | ||
434 | id: startNewInstanceItem | 434 | id: startNewInstanceItem | ||
435 | visible: (visualParent && get(atm.IsLauncher) !== true && get(atm.IsStartup) !== true) | 435 | visible: (visualParent && get(atm.IsLauncher) !== true && get(atm.IsStartup) !== true) | ||
436 | 436 | | |||
437 | enabled: visualParent && get(atm.LauncherUrlWithoutIcon) != null | 437 | enabled: visualParent && get(atm.LauncherUrlWithoutIcon) != "" | ||
438 | 438 | | |||
439 | text: i18n("Start New Instance") | 439 | text: i18n("Start New Instance") | ||
440 | icon: "system-run" | 440 | icon: "system-run" | ||
441 | 441 | | |||
442 | onClicked: tasksModel.requestNewInstance(modelIndex) | 442 | onClicked: tasksModel.requestNewInstance(modelIndex) | ||
443 | } | 443 | } | ||
444 | 444 | | |||
445 | PlasmaComponents.MenuItem { | 445 | PlasmaComponents.MenuItem { | ||
▲ Show 20 Lines • Show All 232 Lines • Show Last 20 Lines |