[Editor] Use toast (notification) instead of dialog when saving with no open scene #96773
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When saving (
ctrl+s
) with no open scene, such as when editing shaders, an dialog popup appears. This does not need to be a popup that requires a click to close. Instead, we can use the editor toaster. The information is still displayed, but no longer interrupts the flow of work.Before:

After:

I might argue that it's not even correct for any message to appear when saving in this case. Files saving when you save is expected behavior. Saving scripts or scenes (even multiple at once) does not send any message to the console, the undo log, dialog popup, or toast. If a scene is open, then saving the same resources saved in this case is done silently. All signs point to this message being unnecessary.
But that change may require some discussion, since it's trying to match the current save behavior in other contexts.