mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Simplify onClicked for install button
CURA-8587
This commit is contained in:
parent
62f99a28b3
commit
d422e0d4ee
1 changed files with 2 additions and 5 deletions
|
|
@ -232,11 +232,8 @@ Item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked:
|
onClicked: packageData.isInstalled ? packageData.uninstall(): packageData.install()
|
||||||
{
|
|
||||||
if (packageData.isInstalled){ packageData.uninstall() }
|
|
||||||
else { packageData.install()}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ManageButton
|
ManageButton
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue