diff --git a/InkDispersion/InkDispersionUpdateNotifier.cs b/InkDispersion/InkDispersionUpdateNotifier.cs index 7b3d03a..45983ed 100644 --- a/InkDispersion/InkDispersionUpdateNotifier.cs +++ b/InkDispersion/InkDispersionUpdateNotifier.cs @@ -13,7 +13,7 @@ internal static class InkDispersionUpdateNotifier public static void EnsureCheckedOnce() { - if (Interlocked.Exchange(ref _started, 1) != 0) + if (Application.Current is null || Interlocked.Exchange(ref _started, 1) != 0) return; _ = RunAsync(); }