Improve TreeItem API and allow to move nodes

This commit is contained in:
trollodel committed 2021-05-17 22:06:46 +02:00
1 parent 92c04fa727
commit bca0d36fe6
28 files changed
+527 -289

No files matched your search

+2 -2
View File
@@ -339,13 +339,13 @@ void ScriptEditorQuickOpen::_update_search() {
if ((search_box->get_text() == "" || file.findn(search_box->get_text()) != -1)) {
TreeItem *ti = search_options->create_item(root);
ti->set_text(0, file);
if (root->get_children() == ti) {
if (root->get_first_child() == ti) {
ti->select(0);
}
}
}
get_ok_button()->set_disabled(root->get_children() == nullptr);
get_ok_button()->set_disabled(root->get_first_child() == nullptr);
}
void ScriptEditorQuickOpen::_confirmed() {