CURA-5035 More style improvements

This commit is contained in:
Ian Paschal 2018-04-11 11:02:33 +02:00
parent 1ddde146dd
commit bd6acc7502
3 changed files with 92 additions and 92 deletions

View file

@ -48,7 +48,7 @@ Rectangle
Button {
id: installButton
text: {
if ( manager.isDownloading )
if ( manager.isDownloading && manager.activePackage == model )
{
return catalog.i18nc("@action:button", "Cancel")
}
@ -61,8 +61,7 @@ Rectangle
{
if ( manager.isDownloading )
{
return true
// return manager.activePackage == model ? true : false
return manager.activePackage == model ? true : false
}
else
{
@ -75,7 +74,7 @@ Rectangle
{
implicitWidth: 96
implicitHeight: 30
color: UM.Theme.getColor("primary")
color: control.hovered ? UM.Theme.getColor("primary_hover") : UM.Theme.getColor("primary")
}
label: Label
{
@ -87,7 +86,8 @@ Rectangle
}
onClicked:
{
console.log( "MODEL", model.download_url )
console.log( "MODEL", model.id )
manager.activePackage = model
// if ( manager.isDownloading && manager.activePackage == model )
if ( manager.isDownloading )
{