diff options
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 67df349e48..eb0e20a12e 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1791,6 +1791,10 @@ void ScriptEditor::ensure_select_current() { _update_selected_editor_menu(); } +bool ScriptEditor::is_editor_floating() { + return is_floating; +} + void ScriptEditor::_find_scripts(Node *p_base, Node *p_current, HashSet<Ref<Script>> &used) { if (p_current != p_base && p_current->get_owner() != p_base) { return; @@ -3747,6 +3751,7 @@ void ScriptEditor::_on_find_in_files_modified_files(PackedStringArray paths) { void ScriptEditor::_window_changed(bool p_visible) { make_floating->set_visible(!p_visible); + is_floating = p_visible; } void ScriptEditor::_filter_scripts_text_changed(const String &p_newtext) { |