Merge pull request #70555 from stmSi/3.x-suggest-filename-save-branch-remote-tree

[3.x] suggest filename save branch remote tree
This commit is contained in:
Rémi Verschelde 2023-01-20 12:12:51 +01:00
commit 606101cacd
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 4 additions and 0 deletions

View File

@ -2263,6 +2263,10 @@ void ScriptEditorDebugger::_item_menu_id_pressed(int p_option) {
file_dialog->add_filter("*." + extensions[i] + " ; " + extensions[i].to_upper());
}
TreeItem *ti = inspect_scene_tree->get_selected();
String filename = ti->get_text(0) + "." + extensions.front()->get().to_lower();
file_dialog->set_current_path(filename);
file_dialog->popup_centered_ratio();
} break;
case ITEM_MENU_COPY_NODE_PATH: {