From 6627ab6d121b5873fdd079d7a309eb3b7db535f8 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sun, 1 Sep 2024 11:44:38 +0200 Subject: [PATCH] App: Try to fix auto context renewal 2 --- Elwig/App.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Elwig/App.xaml.cs b/Elwig/App.xaml.cs index 160c5ef..93ed1ed 100644 --- a/Elwig/App.xaml.cs +++ b/Elwig/App.xaml.cs @@ -202,7 +202,9 @@ namespace Elwig { } public static async Task HintContextChange() { - CurrentApp.LastChanged = CurrentLastWrite; + var ch = CurrentLastWrite; + if (ch > CurrentApp.LastChanged) + CurrentApp.LastChanged = ch; foreach (Window w in CurrentApp.Windows) { if (w is not ContextWindow c) continue; await c.HintContextChange();