Editor: Show full filename in tabs for BTs saved as built-in resources

This commit is contained in:
Serhii Snitsaruk 2024-05-27 15:06:35 +02:00
parent 0a28feb7a9
commit 57382e10a7
No known key found for this signature in database
GPG Key ID: A965EF8799FFEC2D
1 changed files with 2 additions and 0 deletions

View File

@ -971,6 +971,8 @@ void LimboAIEditor::_update_tabs() {
String tab_name; String tab_name;
if (history[i]->get_path().is_empty()) { if (history[i]->get_path().is_empty()) {
tab_name = "[new]"; tab_name = "[new]";
} else if (history[i]->get_path().contains("::")) {
tab_name = history[i]->get_path().get_file();
} else { } else {
tab_name = history[i]->get_path().get_file().get_basename(); tab_name = history[i]->get_path().get_file().get_basename();
} }