mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Directly use bindings in banner pages
CURA-8564
This commit is contained in:
parent
f1ef1c283e
commit
e5c8d5456d
4 changed files with 8 additions and 33 deletions
|
@ -2,17 +2,18 @@
|
|||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import Marketplace 1.0 as Marketplace
|
||||
import UM 1.4 as UM
|
||||
|
||||
Packages
|
||||
{
|
||||
pageTitle: catalog.i18nc("@header", "Install Plugins")
|
||||
|
||||
bannerVisible: CuraApplication.shouldShowMarketPlacePluginBanner()
|
||||
bannerVisible: UM.Preferences.getValue("cura/market_place_show_plugin_banner")
|
||||
bannerIcon: "Shop"
|
||||
bannerBody: catalog.i18nc("@text", "Select and install material profiles optimised for your Ultimaker 3D printers.")
|
||||
readMoreUrl: "" // TODO add when support page is ready
|
||||
onRemoveBanner: function() {
|
||||
CuraApplication.closeMarketPlacePluginBanner();
|
||||
UM.Preferences.setValue("cura/market_place_show_plugin_banner", false)
|
||||
bannerVisible = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue