From 5910d1de19301e6783a3a8216092f4d92edb7982 Mon Sep 17 00:00:00 2001
From: Jack251970 <1160210343@qq.com>
Date: Wed, 2 Jul 2025 12:58:50 +0800
Subject: [PATCH] Add property changed for RegisteredHotkeyData.Hotkey
---
.../Hotkey/RegisteredHotkeyData.cs | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs b/Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs
index b6a10fc30..54df72c70 100644
--- a/Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs
+++ b/Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs
@@ -9,12 +9,24 @@ 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 record RegisteredHotkeyData
+public class RegisteredHotkeyData : BaseModel
{
///
/// representation of this hotkey.
///
- public HotkeyModel Hotkey { get; }
+ private HotkeyModel _hotkey;
+ public HotkeyModel Hotkey
+ {
+ get => _hotkey;
+ set
+ {
+ if (!_hotkey.Equals(value))
+ {
+ _hotkey = value;
+ OnPropertyChanged();
+ }
+ }
+ }
///
/// String key in the localization dictionary that represents this hotkey. For example, ReloadPluginHotkey,