Bugfix für Windows-App

This commit is contained in:
2024-10-21 19:11:05 +02:00
parent ce2c05f325
commit ff145b2c7f

View File

@@ -42,10 +42,14 @@ public partial class StundenPage : ContentPage {
}
private void Vm_AlertEvent(object? sender, string e) {
DisplayAlert("Fehler:", e, "OK");
MainThread.BeginInvokeOnMainThread(async () => {
await DisplayAlert("Fehler:", e, "OK");
});
}
private void Vm_InfoEvent(object? sender, string e) {
DisplayAlert("Information:", e, "OK");
MainThread.BeginInvokeOnMainThread(async () => {
await DisplayAlert("Information:", e, "OK");
});
}
/// <summary>