mirror of
https://github.com/nix-community/plasma-manager.git
synced 2024-12-02 08:18:44 +03:00
shortcuts: Don't set programs.plasma.files if there are no shortcuts
This commit is contained in:
parent
a9e0e6869c
commit
81431064af
@ -39,7 +39,7 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf (cfg.enable && builtins.attrNames cfg.shortcuts != 0) {
|
||||||
programs.plasma.files."kglobalshortcutsrc" =
|
programs.plasma.files."kglobalshortcutsrc" =
|
||||||
shortcutsToSettings cfg.shortcuts;
|
shortcutsToSettings cfg.shortcuts;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user