Skip to content

Commit f4f8e9a

Browse files
committed
Make settings readonly
1 parent c3509c3 commit f4f8e9a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Flow.Launcher/CustomQueryHotkeySetting.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Flow.Launcher
1010
{
1111
public partial class CustomQueryHotkeySetting : Window
1212
{
13-
public Settings Settings { get; set; }
13+
public Settings Settings { get; }
1414

1515
private bool update;
1616
private CustomPluginHotkey updateCustomHotkey;

Flow.Launcher/CustomShortcutSetting.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Flow.Launcher
88
{
99
public partial class CustomShortcutSetting : Window
1010
{
11-
public Settings Settings { get; set; } = Ioc.Default.GetRequiredService<Settings>();
11+
public Settings Settings { get; } = Ioc.Default.GetRequiredService<Settings>();
1212

1313
private readonly SettingsPaneHotkeyViewModel _hotkeyVm;
1414
public string Key { get; set; } = string.Empty;

Flow.Launcher/ViewModel/SettingWindowViewModel.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Flow.Launcher.ViewModel;
55

66
public partial class SettingWindowViewModel : BaseModel
77
{
8-
public Settings Settings { get; set; }
8+
public Settings Settings { get; }
99

1010
public SettingWindowViewModel(Settings settings)
1111
{

0 commit comments

Comments
 (0)