From f47fafe1fa63cbbd2a4ca5d551faa518b059dffb Mon Sep 17 00:00:00 2001 From: JieXu Date: Thu, 28 May 2026 14:40:50 +0800 Subject: [PATCH] Update OptionSettingWindow.axaml.cs --- v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs index 43f817cb..254cf24b 100644 --- a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs +++ b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs @@ -155,14 +155,8 @@ public partial class OptionSettingWindow : WindowBase { var lstFonts = await GetFonts(); - lstFonts.Insert(0, string.Empty); + lstFonts.Add(string.Empty); cmbcurrentFontFamily.ItemsSource = lstFonts; - - if (ViewModel?.CurrentFontFamily.IsNullOrEmpty() == true) - { - cmbcurrentFontFamily.SelectedIndex = 0; - cmbcurrentFontFamily.Text = string.Empty; - } } private async Task> GetFonts()