Skip to content

4.4 update tab tooltip based on script_editor resource_path #5

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gruntmoon
Copy link

In 4.4 (not sure about previous 4.x version), tab_control.get("metadata/_edit_res_path") does not exist.

Replace with a more reliable script_editor.get_open_scripts()[_last_tab_hovered].resource_path.

image

Thanks.

@gruntmoon
Copy link
Author

Hi @MakovWait,
Would you kindly take a look on this PR?

Thanks!

@MakovWait
Copy link
Owner

Hi! Thanks for the contribution!

Seems OK, but the change causes error if tab from Docs (or anything that is not Script) is hovered.

@gruntmoon
Copy link
Author

Let me take a look I on that.

Signed-off-by: gruntmoon <[email protected]>
@gruntmoon
Copy link
Author

gruntmoon commented Aug 5, 2025

Hi @MakovWait, updated logic so that if it is a script, update tooltip with its full res path.
Else, will default to the title name.
Not pretty as I wrote that very quick but seems display correct. Thanks.

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