mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #3862 from Flow-Launcher/dialog_jump_improvement
Fix dialog jump issue when result will not be execueted under empty query option
This commit is contained in:
commit
c604df96e9
1 changed files with 7 additions and 8 deletions
|
|
@ -501,15 +501,14 @@ namespace Flow.Launcher.ViewModel
|
||||||
// For Dialog Jump and left click mode, we need to navigate to the path
|
// For Dialog Jump and left click mode, we need to navigate to the path
|
||||||
if (_isDialogJump && Settings.DialogJumpResultBehaviour == DialogJumpResultBehaviours.LeftClick)
|
if (_isDialogJump && Settings.DialogJumpResultBehaviour == DialogJumpResultBehaviours.LeftClick)
|
||||||
{
|
{
|
||||||
Hide();
|
if (result is DialogJumpResult dialogJumpResult)
|
||||||
|
|
||||||
if (SelectedResults.SelectedItem != null && DialogWindowHandle != nint.Zero)
|
|
||||||
{
|
{
|
||||||
if (result is DialogJumpResult dialogJumpResult)
|
Win32Helper.SetForegroundWindow(DialogWindowHandle);
|
||||||
{
|
_ = Task.Run(() => DialogJump.JumpToPathAsync(DialogWindowHandle, dialogJumpResult.DialogJumpPath));
|
||||||
Win32Helper.SetForegroundWindow(DialogWindowHandle);
|
}
|
||||||
_ = Task.Run(() => DialogJump.JumpToPathAsync(DialogWindowHandle, dialogJumpResult.DialogJumpPath));
|
else
|
||||||
}
|
{
|
||||||
|
App.API.LogError(ClassName, "DialogJumpResult expected but got a different result type.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// For query mode, we execute the result
|
// For query mode, we execute the result
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue