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 renaming BehaviorTree files doesn't update tab names #191

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

ydeltastar
Copy link
Contributor

@ydeltastar ydeltastar commented Aug 9, 2024

Tab names don't update when a built-in behavior tree is saved as a file or renamed. This PR makes it update if any are open.

@@ -914,6 +914,13 @@ void LimboAIEditor::_on_resources_reload(const PackedStringArray &p_resources) {
#endif
}

void LimboAIEditor::_on_filesystem_changed() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like an overkill to do it when LimboAI is not used.
I suggest connecting & disconnecting the signal in make_visible, or checking is_visible_in_tree().

Copy link
Contributor Author

@ydeltastar ydeltastar Aug 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will introduce the issue that the tabs remain outdated when the editor is visible again.
I pushed a solution to update only when visible.

@limbonaut limbonaut added the bug Something isn't working label Aug 10, 2024
@limbonaut limbonaut added this to the 1.2 milestone Aug 10, 2024
Copy link
Owner

@limbonaut limbonaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, thanks.

@limbonaut limbonaut merged commit 6ada9ce into limbonaut:master Aug 11, 2024
16 checks passed
@ydeltastar ydeltastar deleted the fix-tab-update branch September 14, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants