ContextWindow: Add HasContextLoaded property

This commit is contained in:
2026-04-05 22:44:52 +02:00
parent d051a2bfcf
commit e5e5e10cd7
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;
}