Fix some legacy code

This commit is contained in:
kobewi 2024-01-17 15:03:52 +01:00
parent 3978628c6c
commit 0d1c388991
4 changed files with 11 additions and 22 deletions

View file

@ -4412,13 +4412,9 @@ bool ScriptEditorPlugin::handles(Object *p_object) const {
void ScriptEditorPlugin::make_visible(bool p_visible) {
if (p_visible) {
window_wrapper->show();
script_editor->set_process(true);
script_editor->ensure_select_current();
} else {
window_wrapper->hide();
if (!window_wrapper->get_window_enabled()) {
script_editor->set_process(false);
}
}
}