Skip to content

Commit

Permalink
Editor: fix typo in VCS plugin method names
Browse files Browse the repository at this point in the history
  • Loading branch information
merumelu committed Nov 19, 2019
1 parent 95f1f4e commit 94fc676
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion doc/classes/EditorVCSInterface.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
- [code]"offset"[/code] to store the offset of the line change since the first contextual line content.
</description>
</method>
<method name="get_is_vcs_intialized">
<method name="is_vcs_initialized">
<return type="bool">
</return>
<description>
Expand Down
10 changes: 5 additions & 5 deletions editor/editor_vcs_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void EditorVCSInterface::_bind_methods() {

// Proxy end points that act as fallbacks to unavailability of a function in the VCS addon
ClassDB::bind_method(D_METHOD("_initialize", "project_root_path"), &EditorVCSInterface::_initialize);
ClassDB::bind_method(D_METHOD("_get_is_vcs_intialized"), &EditorVCSInterface::_get_is_vcs_intialized);
ClassDB::bind_method(D_METHOD("_is_vcs_initialized"), &EditorVCSInterface::_is_vcs_initialized);
ClassDB::bind_method(D_METHOD("_get_vcs_name"), &EditorVCSInterface::_get_vcs_name);
ClassDB::bind_method(D_METHOD("_shut_down"), &EditorVCSInterface::_shut_down);
ClassDB::bind_method(D_METHOD("_get_project_name"), &EditorVCSInterface::_get_project_name);
Expand All @@ -50,7 +50,7 @@ void EditorVCSInterface::_bind_methods() {

// API methods that redirect calls to the proxy end points
ClassDB::bind_method(D_METHOD("initialize", "project_root_path"), &EditorVCSInterface::initialize);
ClassDB::bind_method(D_METHOD("get_is_vcs_intialized"), &EditorVCSInterface::get_is_vcs_intialized);
ClassDB::bind_method(D_METHOD("is_vcs_initialized"), &EditorVCSInterface::is_vcs_initialized);
ClassDB::bind_method(D_METHOD("get_modified_files_data"), &EditorVCSInterface::get_modified_files_data);
ClassDB::bind_method(D_METHOD("stage_file", "file_path"), &EditorVCSInterface::stage_file);
ClassDB::bind_method(D_METHOD("unstage_file", "file_path"), &EditorVCSInterface::unstage_file);
Expand All @@ -67,7 +67,7 @@ bool EditorVCSInterface::_initialize(String p_project_root_path) {
return true;
}

bool EditorVCSInterface::_get_is_vcs_intialized() {
bool EditorVCSInterface::_is_vcs_initialized() {

return false;
}
Expand Down Expand Up @@ -112,9 +112,9 @@ bool EditorVCSInterface::initialize(String p_project_root_path) {
return is_initialized;
}

bool EditorVCSInterface::get_is_vcs_intialized() {
bool EditorVCSInterface::is_vcs_initialized() {

return call("_get_is_vcs_intialized");
return call("_is_vcs_initialized");
}

Dictionary EditorVCSInterface::get_modified_files_data() {
Expand Down
4 changes: 2 additions & 2 deletions editor/editor_vcs_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class EditorVCSInterface : public Object {

// Implemented by addons as end points for the proxy functions
bool _initialize(String p_project_root_path);
bool _get_is_vcs_intialized();
bool _is_vcs_initialized();
Dictionary _get_modified_files_data();
void _stage_file(String p_file_path);
void _unstage_file(String p_file_path);
Expand All @@ -66,7 +66,7 @@ class EditorVCSInterface : public Object {

// Proxy functions to the editor for use
bool initialize(String p_project_root_path);
bool get_is_vcs_intialized();
bool is_vcs_initialized();
Dictionary get_modified_files_data();
void stage_file(String p_file_path);
void unstage_file(String p_file_path);
Expand Down
5 changes: 3 additions & 2 deletions editor/plugins/version_control_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/*************************************************************************/

#include "version_control_editor_plugin.h"

#include "core/script_language.h"
#include "editor/editor_file_system.h"
#include "editor/editor_node.h"
Expand Down Expand Up @@ -398,9 +399,9 @@ void VersionControlEditorPlugin::shut_down() {
}
}

bool VersionControlEditorPlugin::get_is_vcs_intialized() const {
bool VersionControlEditorPlugin::is_vcs_initialized() const {

return EditorVCSInterface::get_singleton() ? EditorVCSInterface::get_singleton()->get_is_vcs_intialized() : false;
return EditorVCSInterface::get_singleton() ? EditorVCSInterface::get_singleton()->is_vcs_initialized() : false;
}

const String VersionControlEditorPlugin::get_vcs_name() const {
Expand Down
2 changes: 1 addition & 1 deletion editor/plugins/version_control_editor_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class VersionControlEditorPlugin : public EditorPlugin {
PanelContainer *get_version_control_dock() const { return version_control_dock; }

List<StringName> get_available_vcs_names() const { return available_addons; }
bool get_is_vcs_intialized() const;
bool is_vcs_initialized() const;
const String get_vcs_name() const;

void register_editor();
Expand Down

0 comments on commit 94fc676

Please sign in to comment.