diff options
author | Remco Burema <r.burema@ultimaker.com> | 2021-12-30 13:53:42 +0300 |
---|---|---|
committer | Remco Burema <r.burema@ultimaker.com> | 2021-12-30 13:53:42 +0300 |
commit | 1cdeaffab78b1e7ba3a24a642f70e1e42424ca7e (patch) | |
tree | a9cf3707a7e8ba002345fd61fd07f2e5a16d3272 /plugins/Marketplace/resources | |
parent | b794ad6ed22889d5b9c7857132b53a31b32b77b6 (diff) |
Make new Marktetplace react to 'get more materials'.
part of CURA-8588
Diffstat (limited to 'plugins/Marketplace/resources')
-rw-r--r-- | plugins/Marketplace/resources/qml/Marketplace.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Marketplace/resources/qml/Marketplace.qml b/plugins/Marketplace/resources/qml/Marketplace.qml index 017a9e3dde..9027a02121 100644 --- a/plugins/Marketplace/resources/qml/Marketplace.qml +++ b/plugins/Marketplace/resources/qml/Marketplace.qml @@ -25,7 +25,6 @@ Window onVisibleChanged: { - pageSelectionTabBar.currentIndex = 0; //Go back to the initial tab. while(contextStack.depth > 1) { contextStack.pop(); //Do NOT use the StackView.Immediate transition here, since it causes the window to stay empty. Seemingly a Qt bug: https://bugreports.qt.io/browse/QTBUG-60670? @@ -131,9 +130,11 @@ Window height: UM.Theme.getSize("button_icon").height spacing: 0 background: Rectangle { color: "transparent" } + currentIndex: tabManager.tabShown onCurrentIndexChanged: { + tabManager.tabShown = currentIndex searchBar.text = ""; searchBar.visible = currentItem.hasSearch; content.source = currentItem.sourcePage; |