Make settings readonly

This commit is contained in:
Jack251970 2025-04-23 12:49:36 +08:00
parent c3509c3b20
commit f4f8e9af52
3 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ namespace Flow.Launcher
{
public partial class CustomQueryHotkeySetting : Window
{
public Settings Settings { get; set; }
public Settings Settings { get; }
private bool update;
private CustomPluginHotkey updateCustomHotkey;

View file

@ -8,7 +8,7 @@ namespace Flow.Launcher
{
public partial class CustomShortcutSetting : Window
{
public Settings Settings { get; set; } = Ioc.Default.GetRequiredService<Settings>();
public Settings Settings { get; } = Ioc.Default.GetRequiredService<Settings>();
private readonly SettingsPaneHotkeyViewModel _hotkeyVm;
public string Key { get; set; } = string.Empty;

View file

@ -5,7 +5,7 @@ namespace Flow.Launcher.ViewModel;
public partial class SettingWindowViewModel : BaseModel
{
public Settings Settings { get; set; }
public Settings Settings { get; }
public SettingWindowViewModel(Settings settings)
{