diff --git a/Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs b/Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs index b34974e48..b0477d79d 100644 --- a/Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs +++ b/Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs @@ -11,7 +11,7 @@ namespace Flow.Launcher.Infrastructure.Hotkey; /// and to display errors if user tries to register a hotkey /// that has already been registered, and optionally provides a way to unregister the hotkey. /// -public class RegisteredHotkeyData : BaseModel +public record RegisteredHotkeyData { /// /// Type of this hotkey in the context of the application. @@ -26,19 +26,7 @@ public class RegisteredHotkeyData : BaseModel /// /// representation of this hotkey. /// - private HotkeyModel _hotkey; - public HotkeyModel Hotkey - { - get => _hotkey; - set - { - if (!_hotkey.Equals(value)) - { - _hotkey = value; - OnPropertyChanged(); - } - } - } + public HotkeyModel Hotkey { get; } /// /// String key in the localization dictionary that represents this hotkey. For example, ReloadPluginHotkey,