File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -698,16 +698,6 @@ private ResultsViewModel SelectedResults
698
698
Results . Visibility = Visibility . Collapsed ;
699
699
_queryTextBeforeLeaveResults = QueryText ;
700
700
701
- if ( HistorySelected ( ) )
702
- {
703
- // If we are returning from query results and we have not set select item yet,
704
- // we need to clear the preview selected item
705
- if ( isReturningFromQueryResults && _selectedItemFromQueryResults . HasValue && _selectedItemFromQueryResults . Value )
706
- {
707
- PreviewSelectedItem = null ;
708
- }
709
- }
710
-
711
701
// Because of Fody's optimization
712
702
// setter won't be called when property value is not changed.
713
703
// so we need manually call Query()
@@ -720,6 +710,16 @@ private ResultsViewModel SelectedResults
720
710
{
721
711
QueryText = string . Empty ;
722
712
}
713
+
714
+ if ( HistorySelected ( ) )
715
+ {
716
+ // If we are returning from query results and we have not set select item yet,
717
+ // we need to clear the preview selected item
718
+ if ( isReturningFromQueryResults && _selectedItemFromQueryResults . HasValue && _selectedItemFromQueryResults . Value )
719
+ {
720
+ PreviewSelectedItem = null ;
721
+ }
722
+ }
723
723
}
724
724
725
725
_selectedResults . Visibility = Visibility . Visible ;
You can’t perform that action at this time.
0 commit comments