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.
commitbab7fe722469dec44a54ca82c1ce076dd9c9bfef authorMirco Müller <mirco.mueller@ubuntu.com> dateWed 17 Jun 2015, 17:17 (11 years ago) parentc293465
1 file changed+7−6
qml/Launcher/LauncherPanel.qml+7−6
qml/Launcher/LauncherPanel.qml+7−6
@@ -152,6 +152,13 @@ Rectangle {
152152 }
153153
154154 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+
155162 if (peekingIndex === -1) {
156163 peekingIndex = peek
157164 }
@@ -167,12 +174,6 @@ Rectangle {
167174 if (peekingIndex !== -1) {
168175 panel.visible = true
169176 launcherListViewItem.clip = false
170− if (!dragging) {
171− priv.moveToIndexYFrom = contentY
172− positionViewAtIndex(peekingIndex, ListView.Center)
173− priv.moveToIndexYTo = contentY
174− moveToIndexAnimation.start()
175− }
176177 } else {
177178 launcherListViewItem.clip = true
178179 }