Skip to content

Commit abb5708

Browse files
committed
focus => p_focus
1 parent 6c862cf commit abb5708

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

editor/shader/shader_editor_plugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ void ShaderEditorPlugin::_update_shader_editor_zoom_factor(CodeTextEditor *p_sha
778778
}
779779
}
780780

781-
void ShaderEditorPlugin::_switch_to_editor(ShaderEditor *p_editor, bool focus) {
781+
void ShaderEditorPlugin::_switch_to_editor(ShaderEditor *p_editor, bool p_focus) {
782782
ERR_FAIL_NULL(p_editor);
783783
if (file_menu->get_parent() != nullptr) {
784784
file_menu->get_parent()->remove_child(file_menu);
@@ -788,7 +788,7 @@ void ShaderEditorPlugin::_switch_to_editor(ShaderEditor *p_editor, bool focus) {
788788
}
789789
empty_menu->set_visible(false);
790790
p_editor->use_menu_bar_items(file_menu, make_floating);
791-
if (focus) {
791+
if (p_focus) {
792792
TextShaderEditor *text_shader_editor = Object::cast_to<TextShaderEditor>(p_editor);
793793
if (text_shader_editor) {
794794
text_shader_editor->get_code_editor()->get_text_editor()->grab_focus();

editor/shader/shader_editor_plugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class ShaderEditorPlugin : public EditorPlugin {
127127
void _set_text_shader_zoom_factor(float p_zoom_factor);
128128
void _update_shader_editor_zoom_factor(CodeTextEditor *p_shader_editor) const;
129129

130-
void _switch_to_editor(ShaderEditor *p_editor, bool focus = false);
130+
void _switch_to_editor(ShaderEditor *p_editor, bool p_focus = false);
131131

132132
protected:
133133
void _notification(int p_what);

0 commit comments

Comments
 (0)