mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Update result modifiers when OpenResultModifiers is changed
This commit is contained in:
parent
c5373f6abf
commit
ed4fdb7561
2 changed files with 21 additions and 1 deletions
|
|
@ -40,7 +40,21 @@ namespace Flow.Launcher.Infrastructure.UserSettings
|
|||
}
|
||||
|
||||
public string Hotkey { get; set; } = $"{KeyConstant.Alt} + {KeyConstant.Space}";
|
||||
public string OpenResultModifiers { get; set; } = KeyConstant.Alt;
|
||||
|
||||
private string _openResultModifiers = KeyConstant.Alt;
|
||||
public string OpenResultModifiers
|
||||
{
|
||||
get => _openResultModifiers;
|
||||
set
|
||||
{
|
||||
if (_openResultModifiers != value)
|
||||
{
|
||||
_openResultModifiers = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string ColorScheme { get; set; } = "System";
|
||||
|
||||
private bool _showOpenResultHotkey = true;
|
||||
|
|
|
|||
|
|
@ -323,6 +323,12 @@ namespace Flow.Launcher
|
|||
case nameof(Settings.ShowAtTopmost):
|
||||
Topmost = _settings.ShowAtTopmost;
|
||||
break;
|
||||
case nameof(Settings.OpenResultModifiers):
|
||||
if (_viewModel.QueryResultsSelected() && string.IsNullOrEmpty(_viewModel.QueryText))
|
||||
{
|
||||
_viewModel.QueryResults();
|
||||
}
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue