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:
Saumya Jain 2024-03-27 16:42:45 +01:00
parent f89d4ddb4c
commit c3b0fa5bd3
3 changed files with 17 additions and 1 deletions

View file

@ -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();
}
}
}