@@ -26,7 +26,14 @@ Item {
2626 // TODO This needs to account for when all is the current item
2727 // And All needs a currentItem concept
2828 // TODO we also need a centered item so when we click done from all the item grows from the middle: think
29− property var dashItemEater: middleItems.count > 1 ? middleItems.itemAt(0).item.currentItem.item : null
29+ property var dashItemEater: {
30+ if (middleItems.count > tabBarHolder.currentTab) {
31+ var loader = middleItems.itemAt(tabBarHolder.currentTab).item;
32+ return loader && loader.currentItem ? loader.currentItem.item : null;
33+ }
34+ return null;
35+ }
36+ property int currentIndex: 0
3037 property real scopeScale: 1
3138 property QtObject scopeStyle: QtObject {
3239 property string headerLogo: ""
@@ -211,6 +218,7 @@ Item {
211218 item.scopeWidth = root.width;
212219 item.scopeHeight = root.height;
213220 item.appliedScale = Qt.binding(function() { return loader.scale })
221+ item.currentIndex = Qt.binding(function() { return root.currentIndex }) // TODO Move down
214222 } else if (index == 1) {
215223 item.extraHeight = bottomBar.height;
216224 }