Skip to content

Commit 83e5654

Browse files
committed
Fix possible null exception
1 parent 284fe2b commit 83e5654

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher/CustomShortcutSetting.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ namespace Flow.Launcher
99
{
1010
public partial class CustomShortcutSetting : Window
1111
{
12+
private static readonly Settings _settings = Ioc.Default.GetRequiredService<Settings>();
13+
1214
private readonly SettingsPaneHotkeyViewModel _hotkeyVm;
1315
public string Key { get; set; } = String.Empty;
1416
public string Value { get; set; } = String.Empty;
1517
private string originalKey { get; } = null;
1618
private string originalValue { get; } = null;
1719
private bool update { get; } = false;
18-
private readonly Settings _settings;
1920
public event PropertyChangedEventHandler PropertyChanged;
2021

2122
public string SettingWindowFont

0 commit comments

Comments
 (0)