Fix panel IPC hotkeys
This commit is contained in:
+8
-10
@@ -45,17 +45,15 @@ Item {
|
|||||||
id: panelController
|
id: panelController
|
||||||
}
|
}
|
||||||
|
|
||||||
property IpcHandler _ipc: manageIpc ? ipcComponent.createObject(root) : null
|
IpcHandler {
|
||||||
|
enabled: root.manageIpc && root.ipcTarget !== ""
|
||||||
|
target: root.ipcTarget
|
||||||
|
|
||||||
property Component ipcComponent: Component {
|
function open(): void { root.open() }
|
||||||
IpcHandler {
|
function close(): void { root.close() }
|
||||||
target: root.ipcTarget
|
function show(): void { root.open() }
|
||||||
function open(): void { root.open() }
|
function hide(): void { root.close() }
|
||||||
function close(): void { root.close() }
|
function toggle(): void { root.toggle() }
|
||||||
function show(): void { root.open() }
|
|
||||||
function hide(): void { root.close() }
|
|
||||||
function toggle(): void { root.toggle() }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -214,6 +214,12 @@ jq -e '
|
|||||||
|
|
||||||
pass "runtime geometry keeps update before indicators"
|
pass "runtime geometry keeps update before indicators"
|
||||||
|
|
||||||
|
for panel_id in omarchy.audio omarchy.bluetooth omarchy.monitor omarchy.network omarchy.power; do
|
||||||
|
shell_ipc "$panel_id" open >/dev/null || fail_with_log "direct panel IPC opens $panel_id"
|
||||||
|
shell_ipc "$panel_id" close >/dev/null || fail_with_log "direct panel IPC closes $panel_id"
|
||||||
|
done
|
||||||
|
pass "direct panel IPC opens and closes default panels"
|
||||||
|
|
||||||
HOME="$test_home" OMARCHY_PATH="$test_root" PATH="$ROOT/bin:$PATH" "$ROOT/bin/omarchy-config-shell-bar" remove omarchy.audio
|
HOME="$test_home" OMARCHY_PATH="$test_root" PATH="$ROOT/bin:$PATH" "$ROOT/bin/omarchy-config-shell-bar" remove omarchy.audio
|
||||||
|
|
||||||
for _ in {1..80}; do
|
for _ in {1..80}; do
|
||||||
|
|||||||
Reference in New Issue
Block a user