When hovering over directory while dragging something, the directory will open

This commit is contained in:
Yousef Khadadeh 2025-12-22 19:35:29 +03:00
parent b85993c838
commit ec545cba14
3 changed files with 35 additions and 7 deletions

View file

@ -110,7 +110,7 @@ void BookmarkManager::setup_list_gui(const std::string& id) {
for(size_t i = 0; i < objsToInsert.size(); i++) {
toEraseMap[objsToInsert[i].parent].emplace(objsToInsert[i].object);
if(objsToInsert[i].parent == listObj && listPtr->get(objsToInsert[i].object)->pos <= index)
if(newIndex != 0 && objsToInsert[i].parent == listObj && listPtr->get(objsToInsert[i].object)->pos <= index)
newIndex--;
}