:bug:修复模式选择下拉框的崩溃bug

This commit is contained in:
Amazing_DM
2020-05-15 20:02:15 +08:00
parent f71b319741
commit debfa76ea2
3 changed files with 61 additions and 52 deletions

View File

@@ -255,7 +255,7 @@ namespace Netch.Forms
private void SaveConfigs()
{
Global.Settings.ServerComboBoxSelectedIndex = ServerComboBox.SelectedIndex;
if (ModeComboBox.SelectedItem != null)
if (ModeComboBox.Items.Count!=0 && ModeComboBox.SelectedItem != null)
{
if (ModeComboBox.Tag is object[] list)