File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
Flow.Launcher.Plugin/Interfaces Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -298,5 +298,11 @@ public interface IPublicAPI
298
298
/// </summary>
299
299
/// <param name="reselect">Choose the first result after reload if true; keep the last selected result if false. Default is true.</param>
300
300
public void ReQuery ( bool reselect = true ) ;
301
+
302
+ /// <summary>
303
+ /// Back to the query results.
304
+ /// This method should run when selected item is from context menu or history.
305
+ /// </summary>
306
+ public void BackToQueryResults ( ) ;
301
307
}
302
308
}
Original file line number Diff line number Diff line change @@ -318,6 +318,8 @@ public bool IsGameModeOn()
318
318
319
319
public void ReQuery ( bool reselect = true ) => _mainVM . ReQuery ( reselect ) ;
320
320
321
+ public void BackToQueryResults ( ) => _mainVM . BackToQueryResults ( ) ;
322
+
321
323
#endregion
322
324
323
325
#region Private Methods
Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
using System . Collections . Generic ;
3
3
using System . Linq ;
4
4
using System . Threading ;
@@ -484,6 +484,14 @@ private void Esc()
484
484
}
485
485
}
486
486
487
+ public void BackToQueryResults ( )
488
+ {
489
+ if ( ! SelectedIsFromQueryResults ( ) )
490
+ {
491
+ SelectedResults = Results ;
492
+ }
493
+ }
494
+
487
495
[ RelayCommand ]
488
496
public void ToggleGameMode ( )
489
497
{
You can’t perform that action at this time.
0 commit comments