Skip to content

Commit

Permalink
Improve invalid hotkey filter (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
geluk committed Jan 4, 2022
1 parent 877a73d commit 38126b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pass-winmenu/src/Configuration/Classes/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ internal class Config
};

[YamlIgnore]
public IEnumerable<HotkeyConfig> Hotkeys => UnfilteredHotkeys?.Where(h => h != null) ?? Enumerable.Empty<HotkeyConfig>();
public IEnumerable<HotkeyConfig> Hotkeys => UnfilteredHotkeys
?.Where(h => h != null && h.Hotkey != null && h.Options != null)
?? Enumerable.Empty<HotkeyConfig>();

public NotificationConfig Notifications { get; set; } = new NotificationConfig();

Expand Down

0 comments on commit 38126b1

Please sign in to comment.