refactor(registry): inline keybind action checks

This commit is contained in:
2026-10-11 12:23:40 -04:00
parent 3e3eba515b
commit 9f882b5695

View File

@@ -10,11 +10,11 @@
entries: entries:
lib.all ( lib.all (
entry: entry:
let (entry.value.action.kind == "exec" && entry.value.action.command != null)
action = entry.value.action; || (
in entry.value.action.kind == "focus"
(action.kind == "exec" && action.command != null) && lib.xor (entry.value.action.direction != null) (entry.value.action.workspace != null)
|| (action.kind == "focus" && lib.xor (action.direction != null) (action.workspace != null)) )
) entries; ) entries;
message = "Desktop keybind actions must set the fields their kind requires."; message = "Desktop keybind actions must set the fields their kind requires.";
} }