Remove banners when clicking close button

This commit is contained in:
casper 2021-11-26 14:49:00 +01:00 committed by Jelle Spijker
parent 5e4f67c7e1
commit 748101ce69
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A
5 changed files with 68 additions and 21 deletions

View file

@ -6,7 +6,15 @@ import Marketplace 1.0 as Marketplace
Packages
{
pageTitle: catalog.i18nc("@header", "Install Plugins")
bannerType: "__PLUGINS__"
bannerVisible: CuraApplication.shouldShowMarketPlacePluginBanner()
bannerIcon: "Shop"
bannerBody: catalog.i18nc("@text", "Select and install material profiles optimised for your Ultimaker 3D printers.")
onRemoveBanner: function() {
CuraApplication.closeMarketPlacePluginBanner();
bannerVisible = false;
}
model: Marketplace.RemotePackageList
{
packageTypeFilter: "plugin"