on xenial help sign in
Make the index changing works

This looks like a workaround but we actually alredy have this on the old scopes code, was just lost in the new scopes

commit772e8c4d33d4a027562c236825da072efb2d48f6 authorAlbert Astals <albert.astals@canonical.com> dateWed 12 Feb 2014, 00:25 (13 years ago) parent3c432c4
1 file changed+2
qml/Dash/GenericScopeView.qml+2
qml/Dash/GenericScopeView.qml+2
@@ -193,6 +193,7 @@ FocusScope {
193193 previewListView.categoryId = categoryId
194194 previewListView.categoryDelegate = rendererLoader.item
195195 previewListView.model = target.model;
196+ previewListView.currentIndex = -1
196197 previewListView.currentIndex = index;
197198
198199 var item = target.model.get(index);
@@ -209,6 +210,7 @@ FocusScope {
209210 previewListView.categoryId = categoryId
210211 previewListView.categoryDelegate = rendererLoader.item
211212 previewListView.model = target.model;
213+ previewListView.currentIndex = -1
212214 previewListView.currentIndex = index;
213215 previewListView.open = true
214216 }