Use new syntax to remove compile time warning from Application.Current.

This commit is contained in:
2026-08-23 20:56:19 +03:00
parent 1b5e13eb10
commit bda8e173c9
+3 -3
View File
@@ -192,11 +192,11 @@ namespace Dashboard.Pal
public void Dispose() => InvokeDispose(true); public void Dispose() => InvokeDispose(true);
[ThreadStatic] private static Application _current; [field: ThreadStatic]
public static Application Current public static Application Current
{ {
get => _current ?? throw new InvalidOperationException("There is currently no current application."); get => field ?? throw new InvalidOperationException("There is currently no current application.");
set => _current = value; set;
} }
} }
} }