DeliveryAdminWindow: Fix creation of new deliveries
Some checks failed
Test / Run tests (push) Has been cancelled

This commit is contained in:
2026-04-02 20:56:08 +02:00
parent e593175e72
commit 8cbb4b2ffe
5 changed files with 33 additions and 28 deletions

View File

@@ -30,11 +30,19 @@ namespace Elwig.Windows {
}
public async void ForceContextReload(object sender, EventArgs evt) {
await HintContextChange();
await ForceContextReload();
}
public async Task HintContextChange() {
public async Task ForceContextReload() {
HintContextChange();
await TryContextReload();
}
public void HintContextChange() {
_renewPending = true;
}
public async Task TryContextReload() {
if (LockContext) return;
await EnsureContextRenewed();
}