From 495e2c1884d31b7628162d9571a99db2270a66e5 Mon Sep 17 00:00:00 2001
From: Jack251970 <1160210343@qq.com>
Date: Wed, 2 Jul 2025 13:27:16 +0800
Subject: [PATCH] Revert "Add property changed for RegisteredHotkeyData.Hotkey"
This reverts commit 5910d1de19301e6783a3a8216092f4d92edb7982.
---
.../Hotkey/RegisteredHotkeyData.cs | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs b/Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs
index b34974e48..b0477d79d 100644
--- a/Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs
+++ b/Flow.Launcher.Infrastructure/Hotkey/RegisteredHotkeyData.cs
@@ -11,7 +11,7 @@ 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 class RegisteredHotkeyData : BaseModel
+public record RegisteredHotkeyData
{
///
/// Type of this hotkey in the context of the application.
@@ -26,19 +26,7 @@ public class RegisteredHotkeyData : BaseModel
///
/// representation of this hotkey.
///
- private HotkeyModel _hotkey;
- public HotkeyModel Hotkey
- {
- get => _hotkey;
- set
- {
- if (!_hotkey.Equals(value))
- {
- _hotkey = value;
- OnPropertyChanged();
- }
- }
- }
+ public HotkeyModel Hotkey { get; }
///
/// String key in the localization dictionary that represents this hotkey. For example, ReloadPluginHotkey,