🐛 修复不能实时自动排序

This commit is contained in:
BookerLiu
2025-03-07 11:29:41 +08:00
parent 32e91d6d23
commit 7b2ffadf9c
2 changed files with 5 additions and 2 deletions

View File

@@ -349,11 +349,11 @@ namespace GeekDesk.Util
/// <summary>
/// 排序图标
/// </summary>
public static void SortIconList()
public static void SortIconList(bool sort = true)
{
try
{
if (MainWindow.appData.AppConfig.IconSortType != SortType.CUSTOM)
if (MainWindow.appData.AppConfig.IconSortType != SortType.CUSTOM && sort)
{
ObservableCollection<MenuInfo> menuList = MainWindow.appData.MenuList;
//List<IconInfo> list = new List<IconInfo>(menuList[MainWindow.appData.AppConfig.SelectedMenuIndex].IconList);