mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Implement syncing feature for Ultimaker account
Updated account syncing functionality for logged-in and non-logged-in sessions in Ultimaker. More specifically, syncing is now engaged when the UI becomes visible and stopped when adding a machine action is triggered. The modifications also include fallback to login if the user is not logged in. CURA-11465
This commit is contained in:
parent
f89d4ddb4c
commit
c3b0fa5bd3
3 changed files with 17 additions and 1 deletions
|
@ -133,7 +133,7 @@ Control
|
|||
text = catalog.i18nc("@button", "Waiting for new printers")
|
||||
busy = true;
|
||||
enabled = false;
|
||||
Cura.API.account.login();
|
||||
Cura.API.account.isLoggedIn? Cura.API.account.sync():Cura.API.account.login();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue