mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #113554 from akien-mga/vcs-fix-OptionButton-indexing
VCS: Properly use IDs for OptionButton after #113522
This commit is contained in:
commit
c5f207fdcb
1 changed files with 2 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ void VersionControlEditorPlugin::_bind_methods() {
|
||||||
|
|
||||||
void VersionControlEditorPlugin::_create_vcs_metadata_files() {
|
void VersionControlEditorPlugin::_create_vcs_metadata_files() {
|
||||||
String dir = "res://";
|
String dir = "res://";
|
||||||
EditorVCSInterface::create_vcs_metadata_files(EditorVCSInterface::VCSMetadata(metadata_selection->get_selected()), dir);
|
EditorVCSInterface::create_vcs_metadata_files(EditorVCSInterface::VCSMetadata(metadata_selection->get_selected_id()), dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VersionControlEditorPlugin::_notification(int p_what) {
|
void VersionControlEditorPlugin::_notification(int p_what) {
|
||||||
|
|
@ -959,7 +959,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
||||||
metadata_selection = memnew(OptionButton);
|
metadata_selection = memnew(OptionButton);
|
||||||
metadata_selection->set_custom_minimum_size(Size2(100, 20));
|
metadata_selection->set_custom_minimum_size(Size2(100, 20));
|
||||||
metadata_selection->add_item("Git", (int)EditorVCSInterface::VCSMetadata::GIT);
|
metadata_selection->add_item("Git", (int)EditorVCSInterface::VCSMetadata::GIT);
|
||||||
metadata_selection->select((int)EditorVCSInterface::VCSMetadata::GIT);
|
metadata_selection->select(metadata_selection->get_item_index((int)EditorVCSInterface::VCSMetadata::GIT));
|
||||||
metadata_hb->add_child(metadata_selection);
|
metadata_hb->add_child(metadata_selection);
|
||||||
|
|
||||||
l = memnew(Label);
|
l = memnew(Label);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue