From abee9ba01550f3371c2018b5d50e97a9d8f5f3a7 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Tue, 15 Apr 2025 13:24:25 +0800 Subject: [PATCH] Fix nullable warning --- .../ViewModels/ActionKeywordModel.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/ActionKeywordModel.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/ActionKeywordModel.cs index 2f614ead8..d4cd1348e 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/ActionKeywordModel.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/ActionKeywordModel.cs @@ -1,13 +1,15 @@ using System.ComponentModel; using System.Runtime.CompilerServices; +#nullable enable + namespace Flow.Launcher.Plugin.Explorer.Views { public class ActionKeywordModel : INotifyPropertyChanged { - private static Settings _settings; + private static Settings _settings = null!; - public event PropertyChangedEventHandler PropertyChanged; + public event PropertyChangedEventHandler? PropertyChanged; public static void Init(Settings settings) { @@ -54,4 +56,4 @@ namespace Flow.Launcher.Plugin.Explorer.Views } } } -} \ No newline at end of file +}