App: Try to fix auto context renewal 2
All checks were successful
Test / Run tests (push) Successful in 2m57s

This commit is contained in:
2024-09-01 11:44:38 +02:00
parent 7ef3faa39e
commit 6627ab6d12

View File

@ -202,7 +202,9 @@ namespace Elwig {
} }
public static async Task HintContextChange() { public static async Task HintContextChange() {
CurrentApp.LastChanged = CurrentLastWrite; var ch = CurrentLastWrite;
if (ch > CurrentApp.LastChanged)
CurrentApp.LastChanged = ch;
foreach (Window w in CurrentApp.Windows) { foreach (Window w in CurrentApp.Windows) {
if (w is not ContextWindow c) continue; if (w is not ContextWindow c) continue;
await c.HintContextChange(); await c.HintContextChange();