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