From 932dac77b628636136f6f785abe24bf22ede9bbb Mon Sep 17 00:00:00 2001 From: sincere liu Date: Mon, 13 May 2024 11:25:22 +0800 Subject: [PATCH] Fix inability to initialize cmbCurrentFontFamily. --- v2rayN/v2rayN/Views/OptionSettingWindow.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/v2rayN/v2rayN/Views/OptionSettingWindow.xaml.cs b/v2rayN/v2rayN/Views/OptionSettingWindow.xaml.cs index 165ffa73..2042630f 100644 --- a/v2rayN/v2rayN/Views/OptionSettingWindow.xaml.cs +++ b/v2rayN/v2rayN/Views/OptionSettingWindow.xaml.cs @@ -91,6 +91,7 @@ namespace v2rayN.Views }); LoadFontsAsync(); //If there are many font files, opening the OptionSettingWindow will noticeably lag. The font loading logic can be changed to execute asynchronously. + cmbcurrentFontFamily.Items.Add(string.Empty); this.WhenActivated(disposables => {