homescreens/folio: Fix favourites bar ghost position when drag out

Fix the scenario where the favourites bar ghost position is not removed
when the user drags the delegate out of the bar area.
This commit is contained in:
Devin Lin 2024-11-09 01:13:52 -08:00
parent 5decdbe2b5
commit aa3e42f65a

View file

@ -238,6 +238,9 @@ void DragState::onDelegateDragPositionChanged()
// stop the favourites insertion timer if the delegate has moved out
if (!inFavouritesArea) {
m_favouritesInsertBetweenTimer->stop();
// clear any ghost entries in the favourites model
m_homeScreen->favouritesModel()->deleteGhostEntry();
}
if (inFavouritesArea || inFolder) {