Skip to content

Comments

4.4 update tab tooltip based on script_editor resource_path#5

Open
gruntmoon wants to merge 2 commits intoMakovWait:mainfrom
gruntmoon:4.4-tab-tooltip
Open

4.4 update tab tooltip based on script_editor resource_path#5
gruntmoon wants to merge 2 commits intoMakovWait:mainfrom
gruntmoon:4.4-tab-tooltip

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.

Signed-off-by: gruntmoon <studio@gruntmoon.com>
@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 <studio@gruntmoon.com>
@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