From 83e5654a5ce2a4651cdfb38f234d4b49bea2ccae Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Wed, 23 Apr 2025 11:42:55 +0800 Subject: [PATCH] Fix possible null exception --- Flow.Launcher/CustomShortcutSetting.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/CustomShortcutSetting.xaml.cs b/Flow.Launcher/CustomShortcutSetting.xaml.cs index dcfa572f4..ba326fb9e 100644 --- a/Flow.Launcher/CustomShortcutSetting.xaml.cs +++ b/Flow.Launcher/CustomShortcutSetting.xaml.cs @@ -9,13 +9,14 @@ namespace Flow.Launcher { public partial class CustomShortcutSetting : Window { + private static readonly Settings _settings = Ioc.Default.GetRequiredService(); + private readonly SettingsPaneHotkeyViewModel _hotkeyVm; public string Key { get; set; } = String.Empty; public string Value { get; set; } = String.Empty; private string originalKey { get; } = null; private string originalValue { get; } = null; private bool update { get; } = false; - private readonly Settings _settings; public event PropertyChangedEventHandler PropertyChanged; public string SettingWindowFont