diff --git a/quickshell/Modals/DankLauncherV2/ActionPanel.qml b/quickshell/Modals/DankLauncherV2/ActionPanel.qml index 4e6b131c..957bece1 100644 --- a/quickshell/Modals/DankLauncherV2/ActionPanel.qml +++ b/quickshell/Modals/DankLauncherV2/ActionPanel.qml @@ -50,6 +50,13 @@ Rectangle { result.push(selectedItem.actions[i]); } } + if (SessionService.nvidiaCommand) { + result.push({ + name: I18n.tr("Launch on dGPU"), + icon: "memory", + action: "launch_dgpu" + }); + } } return result; } diff --git a/quickshell/Modals/DankLauncherV2/Controller.qml b/quickshell/Modals/DankLauncherV2/Controller.qml index cd2e5d79..339249da 100644 --- a/quickshell/Modals/DankLauncherV2/Controller.qml +++ b/quickshell/Modals/DankLauncherV2/Controller.qml @@ -686,14 +686,6 @@ Item { } } - if (SessionService.nvidiaCommand) { - actions.push({ - name: I18n.tr("Launch on dGPU"), - icon: "memory", - action: "launch_dgpu" - }); - } - return { id: appId, type: "app", diff --git a/quickshell/Modals/DankLauncherV2/LauncherContextMenu.qml b/quickshell/Modals/DankLauncherV2/LauncherContextMenu.qml index 74f4f50a..f8bbda58 100644 --- a/quickshell/Modals/DankLauncherV2/LauncherContextMenu.qml +++ b/quickshell/Modals/DankLauncherV2/LauncherContextMenu.qml @@ -131,6 +131,16 @@ Popup { items.push({ type: "separator" }); + + if (isRegularApp && SessionService.nvidiaCommand) { + items.push({ + type: "item", + icon: "memory", + text: I18n.tr("Launch on dGPU"), + action: launchWithNvidia + }); + } + items.push({ type: "item", icon: "launch", diff --git a/quickshell/Modules/ProcessList/ProcessListPopout.qml b/quickshell/Modules/ProcessList/ProcessListPopout.qml index 1d9cb9ca..98bbe990 100644 --- a/quickshell/Modules/ProcessList/ProcessListPopout.qml +++ b/quickshell/Modules/ProcessList/ProcessListPopout.qml @@ -42,8 +42,6 @@ DankPopout { if (!shouldBeVisible) { searchText = ""; expandedPid = ""; - if (processesView) - processesView.reset(); } } @@ -108,8 +106,11 @@ DankPopout { Connections { target: processListPopout function onShouldBeVisibleChanged() { - if (processListPopout.shouldBeVisible) + if (processListPopout.shouldBeVisible) { Qt.callLater(() => processListContent.forceActiveFocus()); + } else { + processesView.reset(); + } } }