[WIP] AdministrationWindow: Add HasContextLoaded property
All checks were successful
Test / Run tests (push) Successful in 1m58s

This commit is contained in:
2026-04-05 22:44:52 +02:00
parent 01c0cba190
commit d854680d59
9 changed files with 24 additions and 28 deletions

View File

@@ -18,6 +18,8 @@ namespace Elwig.Windows {
}
}
protected bool HasContextLoaded { get; private set; }
private bool _renewPending = false;
private readonly RoutedCommand CtrlR = new("CtrlR", typeof(ContextWindow), [new KeyGesture(Key.R, ModifierKeys.Control)]);
@@ -51,6 +53,7 @@ namespace Elwig.Windows {
Mouse.OverrideCursor = Cursors.AppStarting;
using var ctx = new AppDbContext();
await OnRenewContext(ctx);
HasContextLoaded = true;
await OnInit(ctx);
Mouse.OverrideCursor = null;
}