mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Revert "Add property changed for RegisteredHotkeyData.Hotkey"
This reverts commit 5910d1de19.
This commit is contained in:
parent
f36ca62e7c
commit
495e2c1884
1 changed files with 2 additions and 14 deletions
|
|
@ -11,7 +11,7 @@ namespace Flow.Launcher.Infrastructure.Hotkey;
|
|||
/// <see cref="UserSettings"/> and <see cref="IHotkeySettings"/> to display errors if user tries to register a hotkey
|
||||
/// that has already been registered, and optionally provides a way to unregister the hotkey.
|
||||
/// </summary>
|
||||
public class RegisteredHotkeyData : BaseModel
|
||||
public record RegisteredHotkeyData
|
||||
{
|
||||
/// <summary>
|
||||
/// Type of this hotkey in the context of the application.
|
||||
|
|
@ -26,19 +26,7 @@ public class RegisteredHotkeyData : BaseModel
|
|||
/// <summary>
|
||||
/// <see cref="HotkeyModel"/> representation of this hotkey.
|
||||
/// </summary>
|
||||
private HotkeyModel _hotkey;
|
||||
public HotkeyModel Hotkey
|
||||
{
|
||||
get => _hotkey;
|
||||
set
|
||||
{
|
||||
if (!_hotkey.Equals(value))
|
||||
{
|
||||
_hotkey = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
public HotkeyModel Hotkey { get; }
|
||||
|
||||
/// <summary>
|
||||
/// String key in the localization dictionary that represents this hotkey. For example, <c>ReloadPluginHotkey</c>,
|
||||
|
|
|
|||
Loading…
Reference in a new issue