Skip to content

Commit 5910d1d

Browse files
committed
Add property changed for RegisteredHotkeyData.Hotkey
1 parent 989206b commit 5910d1d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,24 @@ namespace Flow.Launcher.Infrastructure.Hotkey;
99
/// <see cref="UserSettings"/> and <see cref="IHotkeySettings"/> to display errors if user tries to register a hotkey
1010
/// that has already been registered, and optionally provides a way to unregister the hotkey.
1111
/// </summary>
12-
public record RegisteredHotkeyData
12+
public class RegisteredHotkeyData : BaseModel
1313
{
1414
/// <summary>
1515
/// <see cref="HotkeyModel"/> representation of this hotkey.
1616
/// </summary>
17-
public HotkeyModel Hotkey { get; }
17+
private HotkeyModel _hotkey;
18+
public HotkeyModel Hotkey
19+
{
20+
get => _hotkey;
21+
set
22+
{
23+
if (!_hotkey.Equals(value))
24+
{
25+
_hotkey = value;
26+
OnPropertyChanged();
27+
}
28+
}
29+
}
1830

1931
/// <summary>
2032
/// String key in the localization dictionary that represents this hotkey. For example, <c>ReloadPluginHotkey</c>,

0 commit comments

Comments
 (0)