ContextWindow: Add HasContextLoaded property
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user