From 588b39a191a5b0e6c4254e396d345fb5cf07a749 Mon Sep 17 00:00:00 2001 From: Space Time Date: Fri, 22 Nov 2024 16:46:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=AE=A2=E9=98=85=E5=88=86?= =?UTF-8?q?=E7=BB=84=E8=AE=BE=E7=BD=AE=E7=AA=97=E5=8F=A3=E7=9A=84=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2rayN/ServiceLib/Handler/ConfigHandler.cs | 2 +- v2rayN/v2rayN.Desktop/Views/SubSettingWindow.axaml | 2 +- v2rayN/v2rayN/Views/SubSettingWindow.xaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v2rayN/ServiceLib/Handler/ConfigHandler.cs b/v2rayN/ServiceLib/Handler/ConfigHandler.cs index 5920a1f8..745bf959 100644 --- a/v2rayN/ServiceLib/Handler/ConfigHandler.cs +++ b/v2rayN/ServiceLib/Handler/ConfigHandler.cs @@ -383,7 +383,7 @@ namespace ServiceLib.Handler } var item = await SQLiteHelper.Instance.TableAsync().FirstOrDefaultAsync(t => t.Port > 0); - return await SetDefaultServerIndex(config, item.IndexId); + return await SetDefaultServerIndex(config, item?.IndexId); } public static async Task GetDefaultServer(Config config) diff --git a/v2rayN/v2rayN.Desktop/Views/SubSettingWindow.axaml b/v2rayN/v2rayN.Desktop/Views/SubSettingWindow.axaml index 7d43eb37..a027c05c 100644 --- a/v2rayN/v2rayN.Desktop/Views/SubSettingWindow.axaml +++ b/v2rayN/v2rayN.Desktop/Views/SubSettingWindow.axaml @@ -53,7 +53,7 @@ Binding="{Binding Remarks}" Header="{x:Static resx:ResUI.LvRemarks}" />