File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
Flow.Launcher.Infrastructure/Hotkey Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ namespace Flow.Launcher.Infrastructure.Hotkey;
1111/// <see cref="UserSettings"/> and <see cref="IHotkeySettings"/> to display errors if user tries to register a hotkey
1212/// that has already been registered, and optionally provides a way to unregister the hotkey.
1313/// </summary>
14- public class RegisteredHotkeyData : BaseModel
14+ public record RegisteredHotkeyData
1515{
1616 /// <summary>
1717 /// Type of this hotkey in the context of the application.
@@ -26,19 +26,7 @@ public class RegisteredHotkeyData : BaseModel
2626 /// <summary>
2727 /// <see cref="HotkeyModel"/> representation of this hotkey.
2828 /// </summary>
29- private HotkeyModel _hotkey ;
30- public HotkeyModel Hotkey
31- {
32- get => _hotkey ;
33- set
34- {
35- if ( ! _hotkey . Equals ( value ) )
36- {
37- _hotkey = value ;
38- OnPropertyChanged ( ) ;
39- }
40- }
41- }
29+ public HotkeyModel Hotkey { get ; }
4230
4331 /// <summary>
4432 /// String key in the localization dictionary that represents this hotkey. For example, <c>ReloadPluginHotkey</c>,
You can’t perform that action at this time.
0 commit comments