mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 01:55:56 +08:00
Simplify onClicked for install button
CURA-8587
This commit is contained in:
parent
62f99a28b3
commit
d422e0d4ee
@ -232,11 +232,8 @@ Item
|
||||
}
|
||||
}
|
||||
|
||||
onClicked:
|
||||
{
|
||||
if (packageData.isInstalled){ packageData.uninstall() }
|
||||
else { packageData.install()}
|
||||
}
|
||||
onClicked: packageData.isInstalled ? packageData.uninstall(): packageData.install()
|
||||
|
||||
}
|
||||
|
||||
ManageButton
|
||||
|
Loading…
x
Reference in New Issue
Block a user