Show restart banner only when a restart is required

Contributes to issue CURA-8587.
This commit is contained in:
Ghostkeeper 2021-12-06 16:00:51 +01:00
parent 1cc3d374a0
commit 3cae6d80b9
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A

View File

@ -232,7 +232,7 @@ Window
{
height: quitButton.height + 2 * UM.Theme.getSize("default_margin").width
color: UM.Theme.getColor("primary")
visible: false // TODO: enable this when restart is required
visible: CuraApplication.getPackageManager().hasPackagesToRemoveOrInstall
anchors
{
left: parent.left