fix power menu options do nothing
This commit is contained in:
parent
c59a2c622d
commit
50cbbf6665
1 changed files with 11 additions and 9 deletions
|
|
@ -14,6 +14,16 @@ PanelWindow {
|
||||||
|
|
||||||
readonly property bool _isNiri: Quickshell.env("NIRI_SOCKET") !== ""
|
readonly property bool _isNiri: Quickshell.env("NIRI_SOCKET") !== ""
|
||||||
|
|
||||||
|
Process {
|
||||||
|
id: runner
|
||||||
|
}
|
||||||
|
|
||||||
|
function _run(cmd) {
|
||||||
|
runner.command = cmd;
|
||||||
|
runner.running = true;
|
||||||
|
menuClosed();
|
||||||
|
}
|
||||||
|
|
||||||
visible: true
|
visible: true
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
|
|
@ -112,19 +122,11 @@ PanelWindow {
|
||||||
font.family: M.Theme.fontFamily
|
font.family: M.Theme.fontFamily
|
||||||
}
|
}
|
||||||
|
|
||||||
Process {
|
|
||||||
id: runner
|
|
||||||
command: entry.modelData.cmd
|
|
||||||
}
|
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: entryArea
|
id: entryArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onClicked: {
|
onClicked: menuWindow._run(entry.modelData.cmd)
|
||||||
runner.running = true;
|
|
||||||
menuWindow.menuClosed();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue