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

Make workspace save not blocking #191

Merged
merged 5 commits into from
Nov 23, 2023
Merged

Make workspace save not blocking #191

merged 5 commits into from
Nov 23, 2023

Conversation

luca-della-vedova
Copy link
Member

New feature implementation

Implemented feature

This PR implements a long standing TODO that came back at us, file saving dialogs were blocking instead of async (like the loading ones).
This froze the background app in Linux / Windows which is a minor annoyance but completely froze the app in Mac which is a deal breaker.

Implementation description

This PR updates rfd as a precursor for wasm save support (a new TODO documents what would be necessary to get the feature in), makes file save dialogs run in a task pool, as well as remove dead code and refactor the Save plugin inside the Workspace plugin, so now the Workspace plugin includes all workspace related functions (saving, creating and loading).

Something similar will have to be done for the Browse window when creating new models, but I left that out of this implementation for now to avoid making the complexity explode.

Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Copy link
Member

@Yadunund Yadunund left a comment

Choose a reason for hiding this comment

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

Tested and works great!

@luca-della-vedova luca-della-vedova merged commit 12fd1d5 into main Nov 23, 2023
5 checks passed
@luca-della-vedova luca-della-vedova deleted the luca/async_save branch November 23, 2023 04:43
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.

2 participants