File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -501,15 +501,14 @@ private async Task OpenResultAsync(string index)
501
501
// For Dialog Jump and left click mode, we need to navigate to the path
502
502
if ( _isDialogJump && Settings . DialogJumpResultBehaviour == DialogJumpResultBehaviours . LeftClick )
503
503
{
504
- Hide ( ) ;
505
-
506
- if ( SelectedResults . SelectedItem != null && DialogWindowHandle != nint . Zero )
504
+ if ( result is DialogJumpResult dialogJumpResult )
507
505
{
508
- if ( result is DialogJumpResult dialogJumpResult )
509
- {
510
- Win32Helper . SetForegroundWindow ( DialogWindowHandle ) ;
511
- _ = Task . Run ( ( ) => DialogJump . JumpToPathAsync ( DialogWindowHandle , dialogJumpResult . DialogJumpPath ) ) ;
512
- }
506
+ Win32Helper . SetForegroundWindow ( DialogWindowHandle ) ;
507
+ _ = Task . Run ( ( ) => DialogJump . JumpToPathAsync ( DialogWindowHandle , dialogJumpResult . DialogJumpPath ) ) ;
508
+ }
509
+ else
510
+ {
511
+ App . API . LogError ( ClassName , "DialogJumpResult expected but got a different result type." ) ;
513
512
}
514
513
}
515
514
// For query mode, we execute the result
You can’t perform that action at this time.
0 commit comments