From 4bdd095ba6aaf0b8cabf4b24d16d12dee41608a9 Mon Sep 17 00:00:00 2001 From: milimoe Date: Sat, 25 Nov 2023 01:52:13 +0800 Subject: [PATCH] .NET 8 --- FunGame.Desktop/FunGame.Desktop.csproj | 5 ++--- FunGame.Desktop/UI/Main/Main.cs | 2 +- FunGame.Implement/FunGame.Implement.csproj | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/FunGame.Desktop/FunGame.Desktop.csproj b/FunGame.Desktop/FunGame.Desktop.csproj index 4537ec6..ddd22ab 100644 --- a/FunGame.Desktop/FunGame.Desktop.csproj +++ b/FunGame.Desktop/FunGame.Desktop.csproj @@ -2,7 +2,7 @@ WinExe - net7.0-windows + net8.0-windows7.0 enable true enable @@ -40,8 +40,7 @@ - ..\..\FunGame.Core\bin\Debug\net7.0\FunGame.Core.dll - True + ..\..\FunGame.Core\bin\Debug\net8.0\FunGame.Core.dll diff --git a/FunGame.Desktop/UI/Main/Main.cs b/FunGame.Desktop/UI/Main/Main.cs index fa0737b..b21bcc4 100644 --- a/FunGame.Desktop/UI/Main/Main.cs +++ b/FunGame.Desktop/UI/Main/Main.cs @@ -1279,7 +1279,7 @@ namespace Milimoe.FunGame.Desktop.UI private void PresetText_SelectedIndexChanged(object sender, EventArgs e) { // 发送快捷消息并执行功能 - if (PresetText.SelectedIndex != 0) + if (PresetText.SelectedIndex != 0 && PresetText.SelectedItem != null) { string s = PresetText.SelectedItem.ToString() ?? ""; SendTalkText_Click(s); diff --git a/FunGame.Implement/FunGame.Implement.csproj b/FunGame.Implement/FunGame.Implement.csproj index 057057e..b57b6cb 100644 --- a/FunGame.Implement/FunGame.Implement.csproj +++ b/FunGame.Implement/FunGame.Implement.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable enable Milimoe @@ -25,8 +25,7 @@ - ..\..\FunGame.Core\bin\Debug\net7.0\FunGame.Core.dll - True + ..\..\FunGame.Core\bin\Debug\net8.0\FunGame.Core.dll