mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06: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:
|
||||
{
|
||||
if (packageData.isInstalled){ packageData.uninstall() }
|
||||
else { packageData.install()}
|
||||
}
|
||||
onClicked: packageData.isInstalled ? packageData.uninstall(): packageData.install()
|
||||
|
||||
}
|
||||
|
||||
ManageButton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue