Skip to content

Commit 6f55e8a

Browse files
committed
Add BackToQueryResults api function back
1 parent aee5856 commit 6f55e8a

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,12 @@ public interface IPublicAPI
305305
/// <param name="reselect">Choose the first result after reload if true; keep the last selected result if false. Default is true.</param>
306306
public void ReQuery(bool reselect = true);
307307

308+
/// <summary>
309+
/// Back to the query results.
310+
/// This method should run when selected item is from context menu or history.
311+
/// </summary>
312+
public void BackToQueryResults();
313+
308314
/// <summary>
309315
/// Displays a standardised Flow message box.
310316
/// </summary>

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ public bool IsGameModeOn()
319319

320320
public void ReQuery(bool reselect = true) => _mainVM.ReQuery(reselect);
321321

322+
public void BackToQueryResults() => _mainVM.BackToQueryResults();
323+
322324
public MessageBoxResult ShowMsgBox(string messageBoxText, string caption = "", MessageBoxButton button = MessageBoxButton.OK, MessageBoxImage icon = MessageBoxImage.None, MessageBoxResult defaultResult = MessageBoxResult.OK) =>
323325
MessageBoxEx.Show(messageBoxText, caption, button, icon, defaultResult);
324326

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ private void Esc()
489489
}
490490
}
491491

492-
private void BackToQueryResults()
492+
public void BackToQueryResults()
493493
{
494494
if (!SelectedIsFromQueryResults())
495495
{

0 commit comments

Comments
 (0)