fix:图标数组错误
This commit is contained in:
@@ -433,8 +433,8 @@ namespace Ink_Canvas
|
|||||||
|
|
||||||
public void UpdateCustomIconsInComboBox()
|
public void UpdateCustomIconsInComboBox()
|
||||||
{
|
{
|
||||||
// 保留前11个内置图标选项
|
// 保留前12个内置图标选项
|
||||||
while (ComboBoxFloatingBarImg.Items.Count > 11)
|
while (ComboBoxFloatingBarImg.Items.Count > 12)
|
||||||
{
|
{
|
||||||
ComboBoxFloatingBarImg.Items.RemoveAt(ComboBoxFloatingBarImg.Items.Count - 1);
|
ComboBoxFloatingBarImg.Items.RemoveAt(ComboBoxFloatingBarImg.Items.Count - 1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ namespace Ink_Canvas
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 如果当前选中的是被删除的图标,重置为默认图标
|
// 如果当前选中的是被删除的图标,重置为默认图标
|
||||||
if (MainWindow.Settings.Appearance.FloatingBarImg >= 8 &&
|
if (MainWindow.Settings.Appearance.FloatingBarImg >= 12 &&
|
||||||
MainWindow.Settings.Appearance.FloatingBarImg - 8 >= MainWindow.Settings.Appearance.CustomFloatingBarImgs.Count)
|
MainWindow.Settings.Appearance.FloatingBarImg - 12 >= MainWindow.Settings.Appearance.CustomFloatingBarImgs.Count)
|
||||||
{
|
{
|
||||||
MainWindow.Settings.Appearance.FloatingBarImg = 0;
|
MainWindow.Settings.Appearance.FloatingBarImg = 0;
|
||||||
mainWindow.ComboBoxFloatingBarImg.SelectedIndex = 0;
|
mainWindow.ComboBoxFloatingBarImg.SelectedIndex = 0;
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user