This commit is contained in:
milimoe 2023-11-25 01:52:13 +08:00
parent 0cb1481d33
commit 4bdd095ba6
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E
3 changed files with 5 additions and 7 deletions

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows</TargetFramework>
<TargetFramework>net8.0-windows7.0</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
@ -40,8 +40,7 @@
<ItemGroup>
<Reference Include="FunGame.Core">
<HintPath>..\..\FunGame.Core\bin\Debug\net7.0\FunGame.Core.dll</HintPath>
<Private>True</Private>
<HintPath>..\..\FunGame.Core\bin\Debug\net8.0\FunGame.Core.dll</HintPath>
</Reference>
</ItemGroup>

View File

@ -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);

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Company>Milimoe</Company>
@ -25,8 +25,7 @@
<ItemGroup>
<Reference Include="FunGame.Core">
<HintPath>..\..\FunGame.Core\bin\Debug\net7.0\FunGame.Core.dll</HintPath>
<Private>True</Private>
<HintPath>..\..\FunGame.Core\bin\Debug\net8.0\FunGame.Core.dll</HintPath>
</Reference>
</ItemGroup>