From 50cbbf6665a770cfc012316132bc7e81f9770dc2 Mon Sep 17 00:00:00 2001 From: Damocles Date: Sun, 12 Apr 2026 15:36:56 +0200 Subject: [PATCH] fix power menu options do nothing --- modules/PowerMenu.qml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/modules/PowerMenu.qml b/modules/PowerMenu.qml index c0eb08a..5c6f38f 100644 --- a/modules/PowerMenu.qml +++ b/modules/PowerMenu.qml @@ -14,6 +14,16 @@ PanelWindow { readonly property bool _isNiri: Quickshell.env("NIRI_SOCKET") !== "" + Process { + id: runner + } + + function _run(cmd) { + runner.command = cmd; + runner.running = true; + menuClosed(); + } + visible: true color: "transparent" @@ -112,19 +122,11 @@ PanelWindow { font.family: M.Theme.fontFamily } - Process { - id: runner - command: entry.modelData.cmd - } - MouseArea { id: entryArea anchors.fill: parent hoverEnabled: true - onClicked: { - runner.running = true; - menuWindow.menuClosed(); - } + onClicked: menuWindow._run(entry.modelData.cmd) } } }