Skip to content

Commit

Permalink
CR comments resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaflo committed Jul 6, 2024
1 parent 91c8ea9 commit ca6ae6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,12 @@ void UpdateLeftToolbarItems()
image = _context.Shell.FlyoutIcon;
}

if (!IsRootPage)
{
NavigationItem.HidesBackButton = !backButtonVisible;
image = backButtonVisible ? image : null;
}

image.LoadImage(MauiContext, result =>
{
UIImage icon = null;
Expand Down Expand Up @@ -368,13 +374,6 @@ void UpdateLeftToolbarItems()
}
});

if (!IsRootPage)
{
NavigationItem.HidesBackButton = !backButtonVisible;
if(!backButtonVisible)
NavigationItem.LeftBarButtonItem = null;
}

UpdateBackButtonTitle();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ public partial class Issue23424 : Shell
public Issue23424()
{
Items.Add(new ContentPage());
Routing.RegisterRoute(nameof(DetailPage),typeof(DetailPage));
GoToAsync(nameof(DetailPage));
Navigation.PushAsync(new DetailPage());
}

public class DetailPage : ContentPage
Expand Down

0 comments on commit ca6ae6b

Please sign in to comment.