From 8a02049b56d86a27b42308f1444ab999c1966894 Mon Sep 17 00:00:00 2001 From: DB p Date: Sat, 27 Nov 2021 14:52:28 +0900 Subject: [PATCH] Add Open Setting Hotkey (Ctrl+I) Remove Unused Code --- Flow.Launcher/MainWindow.xaml | 4 ++++ Flow.Launcher/ViewModel/MainViewModel.cs | 22 ++-------------------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index 734b0a331..dd8979650 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -46,6 +46,10 @@ Key="Tab" Command="{Binding SelectPrevItemCommand}" Modifiers="Shift" /> + "); - - } - } - private void InitializeKeyCommands() { EscCommand = new RelayCommand(_ => @@ -212,7 +193,7 @@ namespace Flow.Launcher.ViewModel { SearchWeb.NewTabInBrowser("https://github.com/Flow-Launcher/Flow.Launcher/wiki/Flow-Launcher/"); }); - + OpenSettingCommand = new RelayCommand(_ => { App.API.OpenSettingDialog(); }); OpenResultCommand = new RelayCommand(index => { var results = SelectedResults; @@ -399,6 +380,7 @@ namespace Flow.Launcher.ViewModel public ICommand LoadContextMenuCommand { get; set; } public ICommand LoadHistoryCommand { get; set; } public ICommand OpenResultCommand { get; set; } + public ICommand OpenSettingCommand { get; set; } public ICommand ReloadPluginDataCommand { get; set; } public ICommand ClearQueryCommand { get; private set; }