mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge branch 'dev' into Calculator-accepts-flexible-separator
This commit is contained in:
commit
e1150a4226
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
|
||||
if (_isDialogJump && Settings.DialogJumpResultBehaviour == DialogJumpResultBehaviours.LeftClick)
|
||||
{
|
||||
Hide();
|
||||
|
||||
if (SelectedResults.SelectedItem != null && DialogWindowHandle != nint.Zero)
|
||||
if (result is DialogJumpResult dialogJumpResult)
|
||||
{
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue