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