Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement syncing feature for Ultimaker account #18745

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

saumyaj3
Copy link
Contributor

CURA-11465

Description

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-> addmachinedialog is triggered. The modifications also include fallback to login if the user is not logged in.

saumyaj3 and others added 2 commits March 27, 2024 16:42
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
@HellAholic HellAholic merged commit a95418f into 5.7 Mar 29, 2024
8 checks passed
@HellAholic HellAholic deleted the CURA-11465-addprinter-window-jumps-to-cloud-printer branch March 29, 2024 15:52
@@ -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();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't an if/else statement have been much more readable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants