diff --git a/Jugenddienst Stunden/AppShell.xaml.cs b/Jugenddienst Stunden/AppShell.xaml.cs index f50557b..90a52f4 100644 --- a/Jugenddienst Stunden/AppShell.xaml.cs +++ b/Jugenddienst Stunden/AppShell.xaml.cs @@ -12,5 +12,9 @@ public partial class AppShell : Shell { //Seiten, die nicht in der Appshell sichtbar sind, aber trotzdem aufgerufen werden können Routing.RegisterRoute(nameof(Views.NotePage), typeof(Views.NotePage)); Routing.RegisterRoute(nameof(Views.StundePage), typeof(Views.StundePage)); + + } + + } diff --git a/Jugenddienst Stunden/MauiProgram.cs b/Jugenddienst Stunden/MauiProgram.cs index 3e5a750..9881125 100644 --- a/Jugenddienst Stunden/MauiProgram.cs +++ b/Jugenddienst Stunden/MauiProgram.cs @@ -1,4 +1,5 @@ -using ZXing.Net.Maui.Controls; +using Microsoft.Extensions.Logging; +using ZXing.Net.Maui.Controls; namespace Jugenddienst_Stunden; diff --git a/Jugenddienst Stunden/Views/AllNotesPage.xaml b/Jugenddienst Stunden/Views/AllNotesPage.xaml index 9667f52..bca5dee 100644 --- a/Jugenddienst Stunden/Views/AllNotesPage.xaml +++ b/Jugenddienst Stunden/Views/AllNotesPage.xaml @@ -12,7 +12,7 @@ - + diff --git a/Jugenddienst Stunden/Views/LoginPage.xaml.cs b/Jugenddienst Stunden/Views/LoginPage.xaml.cs index 17c64f5..4f8827c 100644 --- a/Jugenddienst Stunden/Views/LoginPage.xaml.cs +++ b/Jugenddienst Stunden/Views/LoginPage.xaml.cs @@ -60,7 +60,8 @@ public partial class LoginPage : ContentPage { Preferences.Default.Set("EmployeeId", int.Parse(op.id)); await DisplayAlert("Login erfolgreich", op.name + " " + op.surname, "OK"); - await Navigation.PopAsync(); + if (Navigation.NavigationStack.Count > 1) + await Navigation.PopAsync(); } catch (Exception e) { await DisplayAlert("Fehler", e.Message, "OK"); } diff --git a/Jugenddienst Stunden/Views/StundenPage.xaml b/Jugenddienst Stunden/Views/StundenPage.xaml index 40dd133..d041ba0 100644 --- a/Jugenddienst Stunden/Views/StundenPage.xaml +++ b/Jugenddienst Stunden/Views/StundenPage.xaml @@ -18,14 +18,14 @@ - + - + @@ -37,7 +37,7 @@ @@ -92,7 +92,7 @@