diff --git a/Sources/IHM/MainPage.xaml.cs b/Sources/IHM/MainPage.xaml.cs index 9aae00c..7056a7a 100644 --- a/Sources/IHM/MainPage.xaml.cs +++ b/Sources/IHM/MainPage.xaml.cs @@ -50,7 +50,11 @@ namespace IHM { await DisplayAlert(s, s1, s2); } - + protected override bool OnBackButtonPressed() + { + return true; + } + public ICommand TapCommand => new Command(async (page) => await Shell.Current.GoToAsync(page)); } } \ No newline at end of file diff --git a/Sources/IHM/Settings.xaml.cs b/Sources/IHM/Settings.xaml.cs index 52f390b..4227d77 100644 --- a/Sources/IHM/Settings.xaml.cs +++ b/Sources/IHM/Settings.xaml.cs @@ -1,5 +1,8 @@ namespace IHM; + using Model; +using System.Diagnostics; + public partial class Settings : ContentPage { public Manager Mgr => (App.Current as App).Manager; @@ -14,6 +17,9 @@ public partial class Settings : ContentPage } private async void NavigateTo() { + OnBackButtonPressed(); + Debug.WriteLine(base.OnBackButtonPressed()); await Navigation.PushModalAsync(new MainPage()); } + } \ No newline at end of file