mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fixed(dde-dock): plugin's sequence is error for bug 10319
This commit is contained in:
parent
addbba85d2
commit
84b3d7a74e
@ -260,7 +260,13 @@ void DockItemManager::pluginItemInserted(PluginsItem *item)
|
||||
Q_ASSERT(pItem);
|
||||
|
||||
const int sortKey = pItem->itemSortKey();
|
||||
if (sortKey != -1 && itemSortKey > sortKey)
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user