File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -62,14 +62,11 @@ public static void Initialize()
62
62
private static async void UiSettings_ColorValuesChanged ( UISettings sender , object args )
63
63
{
64
64
// Make sure we have a reference to our window so we dispatch a UI change
65
- if ( currentApplicationWindow is not null )
66
- {
67
- // Dispatch on UI thread so that we have a current appbar to access and change
68
- await currentApplicationWindow . DispatcherQueue . EnqueueAsync ( ( ) =>
69
- {
70
- ApplyTheme ( ) ;
71
- } ) ;
72
- }
65
+ if ( currentApplicationWindow is null )
66
+ return ;
67
+
68
+ // Dispatch on UI thread so that we have a current appbar to access and change
69
+ await currentApplicationWindow . DispatcherQueue . EnqueueAsync ( ApplyTheme ) ;
73
70
}
74
71
75
72
private static void ApplyTheme ( )
You can’t perform that action at this time.
0 commit comments