mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-27 21:01:11 -07:00
Only show the manual sync button after the account popup was closed
CURA-7290
This commit is contained in:
parent
72657f15be
commit
f78fa884c1
3 changed files with 42 additions and 16 deletions
|
|
@ -63,11 +63,12 @@ Row // sync state icon + message
|
|||
color: UM.Theme.getColor("secondary_button_text")
|
||||
font: UM.Theme.getFont("medium")
|
||||
renderType: Text.NativeRendering
|
||||
visible: Cura.API.account.manualSyncEnabled
|
||||
|
||||
MouseArea
|
||||
{
|
||||
anchors.fill: parent
|
||||
onClicked: Cura.API.account.sync()
|
||||
onClicked: Cura.API.account.sync(true)
|
||||
hoverEnabled: true
|
||||
onEntered: accountSyncButton.font.underline = true
|
||||
onExited: accountSyncButton.font.underline = false
|
||||
|
|
@ -93,10 +94,8 @@ Row // sync state icon + message
|
|||
|
||||
if(newState == Cura.AccountSyncState.SYNCING){
|
||||
updateAnimator.running = true
|
||||
accountSyncButton.visible = false
|
||||
} else {
|
||||
updateAnimator.running = false
|
||||
accountSyncButton.visible = true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue