diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2019-12-18 12:00:02 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2019-12-18 12:00:02 +0300 |
commit | 9f223616f1cde94c3e29749528921a505a1055db (patch) | |
tree | a3607a59329d7b27d20f013d15d836f1fa0f71e4 /editor | |
parent | d1bce5c679bd77b50ddae2c3841e5157c6a0b917 (diff) |
Updates toggle scripts switch tooltip (if user changed the shortcut)
Diffstat (limited to 'editor')
-rw-r--r-- | editor/code_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 30fc3789dc..44cd15ab90 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -1654,6 +1654,7 @@ void CodeTextEditor::show_toggle_scripts_button() { void CodeTextEditor::update_toggle_scripts_button() { toggle_scripts_button->set_icon(ScriptEditor::get_singleton()->is_scripts_panel_toggled() ? get_icon("Back", "EditorIcons") : get_icon("Forward", "EditorIcons")); + toggle_scripts_button->set_tooltip(TTR("Toggle Scripts Panel") + " (" + ED_GET_SHORTCUT("script_editor/toggle_scripts_panel")->get_as_text() + ")"); } CodeTextEditor::CodeTextEditor() { @@ -1700,7 +1701,6 @@ CodeTextEditor::CodeTextEditor() { toggle_scripts_button = memnew(ToolButton); toggle_scripts_button->connect("pressed", this, "_toggle_scripts_pressed"); status_bar->add_child(toggle_scripts_button); - toggle_scripts_button->set_tooltip(TTR("Toggle Scripts Panel") + " (" + ED_GET_SHORTCUT("script_editor/toggle_scripts_panel")->get_as_text() + ")"); toggle_scripts_button->hide(); // Error |