File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ void VersionControlEditorPlugin::_bind_methods() {
6060
6161void VersionControlEditorPlugin::_create_vcs_metadata_files () {
6262 String dir = " res://" ;
63- EditorVCSInterface::create_vcs_metadata_files (EditorVCSInterface::VCSMetadata (metadata_selection->get_selected ()), dir);
63+ EditorVCSInterface::create_vcs_metadata_files (EditorVCSInterface::VCSMetadata (metadata_selection->get_selected_id ()), dir);
6464}
6565
6666void VersionControlEditorPlugin::_notification (int p_what) {
@@ -959,7 +959,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
959959 metadata_selection = memnew (OptionButton);
960960 metadata_selection->set_custom_minimum_size (Size2 (100 , 20 ));
961961 metadata_selection->add_item (" Git" , (int )EditorVCSInterface::VCSMetadata::GIT);
962- metadata_selection->select (( int )EditorVCSInterface::VCSMetadata::GIT);
962+ metadata_selection->select (metadata_selection-> get_item_index (( int )EditorVCSInterface::VCSMetadata::GIT) );
963963 metadata_hb->add_child (metadata_selection);
964964
965965 l = memnew (Label);
You can’t perform that action at this time.
0 commit comments