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)
286
286
_userSelectedRecord . Add ( result ) ;
287
287
_history . Add ( result . OriginQuery . RawQuery ) ;
288
288
}
289
- else
290
- {
291
- SelectedResults = Results ;
292
- }
293
-
289
+
294
290
if ( hideWindow )
295
291
{
296
292
Hide ( ) ;
@@ -1002,8 +998,6 @@ public void Show()
1002
998
{
1003
999
Application . Current . Dispatcher . Invoke ( ( ) =>
1004
1000
{
1005
- SelectedResults = Results ;
1006
-
1007
1001
MainWindowVisibility = Visibility . Visible ;
1008
1002
1009
1003
MainWindowOpacity = 1 ;
@@ -1017,6 +1011,10 @@ public async void Hide()
1017
1011
// Trick for no delay
1018
1012
MainWindowOpacity = 0 ;
1019
1013
1014
+ if ( ! SelectedIsFromQueryResults ( ) )
1015
+ {
1016
+ SelectedResults = Results ;
1017
+ }
1020
1018
switch ( Settings . LastQueryMode )
1021
1019
{
1022
1020
case LastQueryMode . Empty :
You can’t perform that action at this time.
0 commit comments