App: Make HintContextChange() synchronous by using MainDispatcher
All checks were successful
Test / Run tests (push) Successful in 2m37s

This commit is contained in:
2024-09-12 11:40:32 +02:00
parent 5c08f61963
commit f09c43c1bd
18 changed files with 32 additions and 32 deletions

View File

@ -191,7 +191,7 @@ namespace Elwig.Windows {
}
await ctx.SaveChangesAsync();
}
await App.HintContextChange();
App.HintContextChange();
ControlUtils.SelectItemWithPk(WbGlKgs, k.KgNr);
} catch (Exception exc) {
var str = "Der Eintrag konnte nicht in der Datenbank aktualisiert werden!\n\n" + exc.Message;
@ -211,7 +211,7 @@ namespace Elwig.Windows {
ctx.Remove(k.WbKg);
await ctx.SaveChangesAsync();
}
await App.HintContextChange();
App.HintContextChange();
ControlUtils.SelectItemWithPk(WbKgs, k.KgNr);
} catch (Exception exc) {
await HintContextChange();