Make new Marktetplace react to 'get more materials'.

part of CURA-8588
This commit is contained in:
Remco Burema 2021-12-30 11:53:42 +01:00
parent b794ad6ed2
commit 1cdeaffab7
No known key found for this signature in database
GPG key ID: 215C49431D43F98C
3 changed files with 33 additions and 9 deletions

View file

@ -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;