可以说的话二次检查

This commit is contained in:
ZouJin 2024-04-01 18:22:28 +08:00
parent 0485e1d8e6
commit b7365fa98f

View File

@ -98,7 +98,7 @@ namespace VPet_Simulator.Windows
private void btn_Send_Click(object sender, RoutedEventArgs e) private void btn_Send_Click(object sender, RoutedEventArgs e)
{ {
if (tbTalk.SelectedIndex == -1 || tbTalk.Text == "没有可以说的话".Translate()) if (tbTalk.SelectedIndex == -1 || tbTalk.Text == "没有可以说的话".Translate() || textList.Count == 0)
{ {
return; return;
} }