File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -286,11 +286,7 @@ private async Task OpenResultAsync(string index)
286286 _userSelectedRecord . Add ( result ) ;
287287 _history . Add ( result . OriginQuery . RawQuery ) ;
288288 }
289- else
290- {
291- SelectedResults = Results ;
292- }
293-
289+
294290 if ( hideWindow )
295291 {
296292 Hide ( ) ;
@@ -1002,8 +998,6 @@ public void Show()
1002998 {
1003999 Application . Current . Dispatcher . Invoke ( ( ) =>
10041000 {
1005- SelectedResults = Results ;
1006-
10071001 MainWindowVisibility = Visibility . Visible ;
10081002
10091003 MainWindowOpacity = 1 ;
@@ -1017,6 +1011,10 @@ public async void Hide()
10171011 // Trick for no delay
10181012 MainWindowOpacity = 0 ;
10191013
1014+ if ( ! SelectedIsFromQueryResults ( ) )
1015+ {
1016+ SelectedResults = Results ;
1017+ }
10201018 switch ( Settings . LastQueryMode )
10211019 {
10221020 case LastQueryMode . Empty :
You can’t perform that action at this time.
0 commit comments