Skip to content

Conversation

@subhas-pramanik-09
Copy link
Contributor

Description

Resolve #4152

In Musicblocks when we try to load an existing project by clicking "Load project from file" from our system an unwanted clear confirmation happens because the doLoad() function internally called the _allClear() function so that due to _allClear() the unwanted confirmation happened. But now it is removed.

Reason

WhatsApp Image 2024-12-18 at 10 38 07_43ae9967
WhatsApp Image 2024-12-18 at 10 39 20_b11c8f87
here the doLoad() function called _allClear() function by passing true argument. So that internally canvas is going to clear. But we don't want that while loading an existing project because we are sure about to do it.

So I pass an extra default argument which determine when the confirmation will skip. When the parameter is true the confirmation is skipped otherwise not.

But the other calling of _allClear() it has no such parameter so that it will not effect those calling because we don't pass anything by default as it is previously.

Screenshot 2024-12-18 102054

Current Behaviour

Screen.Recording.2024-12-18.101736.mp4

@subhas-pramanik-09
Copy link
Contributor Author

subhas-pramanik-09 commented Dec 18, 2024

skipConfirmation = true when the confirmation skipped. In doLoad() function it is skipped.

@subhas-pramanik-09
Copy link
Contributor Author

@walterbender Sir, please review the PR

@subhas-pramanik-09
Copy link
Contributor Author

@walterbender Sir is this okay or something changes required ?

@walterbender walterbender merged commit 3b92197 into sugarlabs:master Dec 19, 2024
4 checks passed
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.

Unwanted clear confirmation during load project

2 participants