on xenial help sign in
ooops. bring back the loading of the new preview
commit71b66819f936cbe0ae57b6102a9a7873c79772ac authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 15 Oct 2013, 14:55 (13 years ago) parent8192a5e
1 file changed+7
Dash/GenericScopeView.qml+7
Dash/GenericScopeView.qml+7
@@ -388,8 +388,15 @@ ScopeView {
388388 }
389389
390390 if (open) {
391+ print("switching to new index", currentIndex)
391392 categoryDelegate.highlightIndex = currentIndex
392393 }
394+
395+ if (!init && model !== undefined) {
396+ var item = model.get(currentIndex)
397+ scopeView.scope.preview( item.uri, item.icon, item.category, 0, item.mimetype, item.title, item.comment, item.dndUri, item.metadata)
398+ }
399+
393400 var itemY = categoryView.contentItem.mapFromItem(categoryDelegate.currentItem).y;
394401 var newContentY = itemY - effect.positionPx - categoryDelegate.verticalSpacing;
395402 var effectAdjust = effect.positionPx;