Always go to plug-ins page regardless of active tab

This was a requirement from UX. Apparently we're adding a link to the materials elsewhere.

Contributes to issue CURA-7071.
This commit is contained in:
Ghostkeeper 2020-01-28 13:25:27 +01:00
parent 13644f7e41
commit 1c79193f9a
No known key found for this signature in database
GPG Key ID: 37E2020986774393

View File

@ -89,15 +89,7 @@ Item
rightMargin: UM.Theme.getSize("default_margin").width rightMargin: UM.Theme.getSize("default_margin").width
verticalCenter: parent.verticalCenter verticalCenter: parent.verticalCenter
} }
onClicked: onClicked: Qt.openUrlExternally(toolbox.getWebMarketplaceUrl("plugins"))
{
let page = "plugins"; //Online page to go to on the Marketplace subdomain.
if(materialsTabButton.active)
{
page = "materials";
}
Qt.openUrlExternally(toolbox.getWebMarketplaceUrl(page));
}
UM.RecolorImage UM.RecolorImage
{ {
id: cloudMarketplaceButton id: cloudMarketplaceButton