File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/Files.App/Views/Shells Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -567,9 +567,7 @@ public virtual void Back_Click()
567567 var previousPageContent = ItemDisplay . BackStack [ ItemDisplay . BackStack . Count - 1 ] ;
568568 HandleBackForwardRequest ( previousPageContent ) ;
569569
570- if ( previousPageContent . SourcePageType == typeof ( HomePage ) )
571- ItemDisplay . GoBack ( new EntranceNavigationTransitionInfo ( ) ) ;
572- else
570+ if ( ItemDisplay . CanGoBack )
573571 ItemDisplay . GoBack ( ) ;
574572 }
575573
@@ -578,7 +576,8 @@ public virtual void Forward_Click()
578576 var incomingPageContent = ItemDisplay . ForwardStack [ ItemDisplay . ForwardStack . Count - 1 ] ;
579577 HandleBackForwardRequest ( incomingPageContent ) ;
580578
581- ItemDisplay . GoForward ( ) ;
579+ if ( ItemDisplay . CanGoForward )
580+ ItemDisplay . GoForward ( ) ;
582581 }
583582
584583 public void ResetNavigationStackLayoutMode ( )
You can’t perform that action at this time.
0 commit comments