Suggest Filename in Remote Tree File Dialog

This commit is contained in:
stmSi 2022-12-25 19:37:32 +06:30 committed by Relintai
parent a872971e46
commit a2661adba8

View File

@ -2296,6 +2296,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: {