Skip to content

Commit 4b6ee4e

Browse files
committed
Improve code quality
1 parent 10d353d commit 4b6ee4e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ private void LoadContextMenu()
422422
_ = Task.Run(() => DialogJump.JumpToPathAsync(DialogWindowHandle, dialogJumpResult.DialogJumpPath));
423423
}
424424
}
425-
426425
return;
427426
}
428427

@@ -1358,14 +1357,20 @@ private List<Result> GetHistoryItems(IEnumerable<LastOpenedHistoryItem> historyI
13581357
{
13591358
if (reflectResult.Action != null)
13601359
{
1360+
// Since some actions may need to hide the Flow window to execute
1361+
// So let us populate the results of them
13611362
return reflectResult.Action(c);
13621363
}
13631364
if (reflectResult.AsyncAction != null)
13641365
{
1365-
return await reflectResult.AsyncAction(c);
1366+
// Since some actions may need to hide the Flow window to execute
1367+
// So let us populate the results of them
1368+
return await reflectResult.AsyncAction(c);
13661369
}
13671370
return false;
13681371
}
1372+
1373+
// If we cannot get the result, fallback to re-query
13691374
App.API.BackToQueryResults();
13701375
App.API.ChangeQuery(h.Query);
13711376
return false;

0 commit comments

Comments
 (0)