From 38126b156c4a0741c6c3b9f9cd81c1107c84115f Mon Sep 17 00:00:00 2001 From: Johan Geluk Date: Tue, 4 Jan 2022 23:18:46 +0100 Subject: [PATCH] Improve invalid hotkey filter (#103) --- pass-winmenu/src/Configuration/Classes/Config.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pass-winmenu/src/Configuration/Classes/Config.cs b/pass-winmenu/src/Configuration/Classes/Config.cs index d746c57..8eeb577 100644 --- a/pass-winmenu/src/Configuration/Classes/Config.cs +++ b/pass-winmenu/src/Configuration/Classes/Config.cs @@ -41,7 +41,9 @@ internal class Config }; [YamlIgnore] - public IEnumerable Hotkeys => UnfilteredHotkeys?.Where(h => h != null) ?? Enumerable.Empty(); + public IEnumerable Hotkeys => UnfilteredHotkeys + ?.Where(h => h != null && h.Hotkey != null && h.Options != null) + ?? Enumerable.Empty(); public NotificationConfig Notifications { get; set; } = new NotificationConfig();