mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
Suggest Filename in Remote Tree File Dialog
This commit is contained in:
parent
a872971e46
commit
a2661adba8
@ -2296,6 +2296,10 @@ void ScriptEditorDebugger::_item_menu_id_pressed(int p_option) {
|
|||||||
file_dialog->add_filter("*." + extensions[i] + " ; " + extensions[i].to_upper());
|
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();
|
file_dialog->popup_centered_ratio();
|
||||||
} break;
|
} break;
|
||||||
case ITEM_MENU_COPY_NODE_PATH: {
|
case ITEM_MENU_COPY_NODE_PATH: {
|
||||||
|
Loading…
Reference in New Issue
Block a user