Disable the "Edit"/"Clear"/"Save" menu item when the EditorResourcePicker is force_allow_unique#117659
Merged
Merged
Conversation
4446bd5 to
d6f0ace
Compare
EditorResourcePicker is force_allow_uniqueEditorResourcePicker is force_allow_unique
YeldhamDev
approved these changes
Mar 20, 2026
Member
YeldhamDev
left a comment
There was a problem hiding this comment.
Works, but now it makes me realize that "Clear" also doesn't do anything in that state as well. :P
d6f0ace to
e5bddc8
Compare
EditorResourcePicker is force_allow_uniqueEditorResourcePicker is force_allow_unique
Contributor
Author
It's now disabled. |
…is `force_allow_unique` Since `force_allow_unique` is enabled when the corresponding property does not exist, the displayed value is "inherited". Therefore, it should not be edited/cleared at this time.
e5bddc8 to
7a1f759
Compare
Contributor
Author
|
Since save/save as replaces the path of the saved instance with the new path, "save"/"save as" is also disabled according to the same logic. 3.mp4In other words, a copy (new instance) must be created first before the disabled operations can be performed. |
EditorResourcePicker is force_allow_uniqueEditorResourcePicker is force_allow_unique
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Since
force_allow_uniqueis enabled when the corresponding property does not exist, the displayed value is "inherited". Therefore, the value should not be edited/cleared/saved at this time. See also #117659 (comment).Peek.2026-03-20.16-09.mp4