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

Fix no unsaved indicator Save As resource #96363

Conversation

Hilderin
Copy link
Contributor

@Hilderin Hilderin commented Aug 31, 2024

There was no unsaved indicator on the scene after using "Save As..." on an internal resource. That caused the issue where the user did not get a warning if he closed the scene after doing the "Save As..." option.

I added a connect to the resource_saved signal on the EditorNode to know when the resource was saved. The signal is only disconnected when the EditorResourcePicker exit the tree. I don't think it's possible that the resource_saved signal could be emitted for the edited_resource on EditorResourcePicker on which the "Save As..." was used without it to be removed from the tree.

@AThousandShips AThousandShips added bug topic:editor cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Aug 31, 2024
@AThousandShips AThousandShips added this to the 4.4 milestone Aug 31, 2024
@AThousandShips AThousandShips requested a review from KoBeWi August 31, 2024 09:12
@Hilderin Hilderin force-pushed the fix-no-unsaved-indicator-save-as-resource branch from d5865c0 to b97c128 Compare August 31, 2024 12:47
@akien-mga akien-mga merged commit 3801b35 into godotengine:master Sep 2, 2024
19 checks passed
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 4.3.1.

@akien-mga akien-mga removed the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants