refactor(registry): inline keybind action checks
This commit is contained in:
@@ -10,11 +10,11 @@
|
||||
entries:
|
||||
lib.all (
|
||||
entry:
|
||||
let
|
||||
action = entry.value.action;
|
||||
in
|
||||
(action.kind == "exec" && action.command != null)
|
||||
|| (action.kind == "focus" && lib.xor (action.direction != null) (action.workspace != null))
|
||||
(entry.value.action.kind == "exec" && entry.value.action.command != null)
|
||||
|| (
|
||||
entry.value.action.kind == "focus"
|
||||
&& lib.xor (entry.value.action.direction != null) (entry.value.action.workspace != null)
|
||||
)
|
||||
) entries;
|
||||
message = "Desktop keybind actions must set the fields their kind requires.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user