Skip to content

Commit 495e2c1

Browse files
committed
Revert "Add property changed for RegisteredHotkeyData.Hotkey"
This reverts commit 5910d1d.
1 parent f36ca62 commit 495e2c1

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff 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>,

0 commit comments

Comments
 (0)