Skip to content

Commit 4df9c04

Browse files
committed
Update dynamic resource earilier
1 parent 94ff72c commit 4df9c04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Flow.Launcher/App.xaml.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ await API.StopwatchLogInfoAsync(ClassName, "Startup cost", async () =>
147147

148148
Log.SetLogLevel(_settings.LogLevel);
149149

150+
// Update dynamic resources base on settings
151+
Current.Resources["SettingWindowFont"] = new FontFamily(_settings.SettingWindowFont);
152+
Current.Resources["ContentControlThemeFontFamily"] = new FontFamily(_settings.SettingWindowFont);
153+
150154
Ioc.Default.GetRequiredService<Portable>().PreStartCleanUpAfterPortabilityUpdate();
151155

152156
API.LogInfo(ClassName, "Begin Flow Launcher startup ----------------------------------------------------");
@@ -176,8 +180,6 @@ await API.StopwatchLogInfoAsync(ClassName, "Startup cost", async () =>
176180
await imageLoadertask;
177181

178182
_mainWindow = new MainWindow();
179-
Current.Resources["SettingWindowFont"] = new FontFamily(_settings.SettingWindowFont);
180-
Current.Resources["ContentControlThemeFontFamily"] = new FontFamily(_settings.SettingWindowFont);
181183

182184
API.LogInfo(ClassName, "Dependencies Info:{ErrorReporting.DependenciesInfo()}");
183185

0 commit comments

Comments
 (0)