Show install, uninstall & disable buttons in packages list

This splits up the single show controls property into three seperate ones
and no longer hides installed packages from the plugin & materials list

CURA-8834
This commit is contained in:
Jaime van Kessel 2022-02-23 16:51:26 +01:00
parent 6cbcf09580
commit 095b8dc5dd
8 changed files with 28 additions and 16 deletions

View file

@ -19,7 +19,10 @@ ListView
property string bannerText
property string bannerReadMoreUrl
property var onRemoveBanner
property bool packagesManageableInListView
property bool showUpdateButton
property bool showDisableButton
property bool showInstallButton
clip: true
@ -81,7 +84,9 @@ ListView
PackageCard
{
manageableInListView: packages.packagesManageableInListView
showUpdateButton: packages.showUpdateButton
showDisableButton: packages.showDisableButton
showInstallButton: packages.showInstallButton
packageData: model.package
width: parent.width - UM.Theme.getSize("default_margin").width - UM.Theme.getSize("narrow_margin").width
color: cardMouseArea.containsMouse ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("main_background")