mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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:
parent
5decdbe2b5
commit
aa3e42f65a
1 changed files with 3 additions and 0 deletions
|
|
@ -238,6 +238,9 @@ void DragState::onDelegateDragPositionChanged()
|
||||||
// stop the favourites insertion timer if the delegate has moved out
|
// stop the favourites insertion timer if the delegate has moved out
|
||||||
if (!inFavouritesArea) {
|
if (!inFavouritesArea) {
|
||||||
m_favouritesInsertBetweenTimer->stop();
|
m_favouritesInsertBetweenTimer->stop();
|
||||||
|
|
||||||
|
// clear any ghost entries in the favourites model
|
||||||
|
m_homeScreen->favouritesModel()->deleteGhostEntry();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inFavouritesArea || inFolder) {
|
if (inFavouritesArea || inFolder) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue