mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fixed(dde-dock): plugin's sequence is error for bug 10319
This commit is contained in:
parent
addbba85d2
commit
84b3d7a74e
@ -260,11 +260,17 @@ void DockItemManager::pluginItemInserted(PluginsItem *item)
|
||||
Q_ASSERT(pItem);
|
||||
|
||||
const int sortKey = pItem->itemSortKey();
|
||||
if (pluginType == DockItem::FixedPlugin) {
|
||||
if (sortKey != -1 && itemSortKey > sortKey)
|
||||
continue;
|
||||
insertIndex = i - 1;
|
||||
break;
|
||||
}
|
||||
if (sortKey != -1 && itemSortKey > sortKey && pItem->itemType() != DockItem::FixedPlugin)
|
||||
continue;
|
||||
insertIndex = i - 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
m_itemList.insert(insertIndex, item);
|
||||
|
Loading…
x
Reference in New Issue
Block a user