on xenial help sign in
Always trigger the implicit unfolding of the launcher to move the icon in view icon which had its alert-state set.
bab7fe7Mirco Müller
qml/Launcher/LauncherPanel.qml+7−6
@@ -152,6 +152,13 @@ Rectangle {
152 }
152 }
153
153
154 function peeking(peek) {
154 function peeking(peek) {
155+ if (!dragging && panel.visible) {
156+ priv.moveToIndexYFrom = contentY
157+ positionViewAtIndex(peek, ListView.Center)
158+ priv.moveToIndexYTo = contentY
159+ moveToIndexAnimation.start()
160+ }
161+
155 if (peekingIndex === -1) {
162 if (peekingIndex === -1) {
156 peekingIndex = peek
163 peekingIndex = peek
157 }
164 }
@@ -167,12 +174,6 @@ Rectangle {
167 if (peekingIndex !== -1) {
174 if (peekingIndex !== -1) {
168 panel.visible = true
175 panel.visible = true
169 launcherListViewItem.clip = false
176 launcherListViewItem.clip = false
170− if (!dragging) {
171− priv.moveToIndexYFrom = contentY
172− positionViewAtIndex(peekingIndex, ListView.Center)
173− priv.moveToIndexYTo = contentY
174− moveToIndexAnimation.start()
175− }
176 } else {
177 } else {
177 launcherListViewItem.clip = true
178 launcherListViewItem.clip = true
178 }
179 }