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,7 +260,13 @@ void DockItemManager::pluginItemInserted(PluginsItem *item)
|
|||||||
Q_ASSERT(pItem);
|
Q_ASSERT(pItem);
|
||||||
|
|
||||||
const int sortKey = pItem->itemSortKey();
|
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;
|
continue;
|
||||||
insertIndex = i - 1;
|
insertIndex = i - 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user