mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
feat(dock): correct index for the drag app to dock from desktop
This commit is contained in:
parent
f8af5aaf24
commit
265ba9511f
@ -212,6 +212,12 @@ void DockItemManager::appItemAdded(const QDBusObjectPath &path, const int index)
|
||||
connect(item, &AppItem::requestCancelPreview, m_appInter, &DBusDock::CancelPreviewWindow);
|
||||
|
||||
m_itemList.insert(insertIndex, item);
|
||||
|
||||
if (index != -1) {
|
||||
emit itemInserted(insertIndex - 1, item);
|
||||
return;
|
||||
}
|
||||
|
||||
emit itemInserted(insertIndex, item);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user