@@ -154,25 +154,6 @@ private void RegisterResultsUpdatedEvent()
154
154
}
155
155
}
156
156
157
- private void UpdateLastQUeryMode ( )
158
- {
159
- switch ( _settings . LastQueryMode )
160
- {
161
- case LastQueryMode . Empty :
162
- ChangeQueryText ( string . Empty ) ;
163
- break ;
164
- case LastQueryMode . Preserved :
165
- LastQuerySelected = true ;
166
- break ;
167
- case LastQueryMode . Selected :
168
- LastQuerySelected = false ;
169
- break ;
170
- default :
171
- throw new ArgumentException ( $ "wrong LastQueryMode: <{ _settings . LastQueryMode } >") ;
172
-
173
- }
174
- }
175
-
176
157
private void InitializeKeyCommands ( )
177
158
{
178
159
EscCommand = new RelayCommand ( _ =>
@@ -212,7 +193,7 @@ private void InitializeKeyCommands()
212
193
{
213
194
SearchWeb . NewTabInBrowser ( "https://github.com/Flow-Launcher/Flow.Launcher/wiki/Flow-Launcher/" ) ;
214
195
} ) ;
215
-
196
+ OpenSettingCommand = new RelayCommand ( _ => { App . API . OpenSettingDialog ( ) ; } ) ;
216
197
OpenResultCommand = new RelayCommand ( index =>
217
198
{
218
199
var results = SelectedResults ;
@@ -399,6 +380,7 @@ private ResultsViewModel SelectedResults
399
380
public ICommand LoadContextMenuCommand { get ; set ; }
400
381
public ICommand LoadHistoryCommand { get ; set ; }
401
382
public ICommand OpenResultCommand { get ; set ; }
383
+ public ICommand OpenSettingCommand { get ; set ; }
402
384
public ICommand ReloadPluginDataCommand { get ; set ; }
403
385
public ICommand ClearQueryCommand { get ; private set ; }
404
386
0 commit comments