Skip to content

Commit f279bfe

Browse files
authored
Feature: Reinitialize ThemeHelper (#12179)
1 parent a97fbbf commit f279bfe

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Files.App/Helpers/ThemeHelper.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,14 @@ private static async void UiSettings_ColorValuesChanged(UISettings sender, objec
6464
{
6565
// Make sure we have a reference to our window so we dispatch a UI change
6666
if (currentApplicationWindow is null)
67-
return;
67+
{
68+
currentApplicationWindow = App.Window;
69+
70+
if (currentApplicationWindow is not null)
71+
titleBar = App.GetAppWindow(currentApplicationWindow).TitleBar;
72+
else
73+
return;
74+
}
6875

6976
// Dispatch on UI thread so that we have a current appbar to access and change
7077
await currentApplicationWindow.DispatcherQueue.EnqueueAsync(ApplyTheme);

0 commit comments

Comments
 (0)