refactor(registry): inline keybind action checks
This commit is contained in:
@@ -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.";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user