mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #104010 from aaronfranke/main-screen-auto-switch
Improve editor 2D/3D main screen auto-switching logic
This commit is contained in:
commit
67b3db8053
6 changed files with 31 additions and 24 deletions
|
|
@ -1810,15 +1810,6 @@ void ScriptEditor::_notification(int p_what) {
|
|||
}
|
||||
}
|
||||
|
||||
bool ScriptEditor::can_take_away_focus() const {
|
||||
ScriptEditorBase *current = _get_current_editor();
|
||||
if (current) {
|
||||
return current->can_lose_focus_on_node_selection();
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
void ScriptEditor::_close_builtin_scripts_from_scene(const String &p_scene) {
|
||||
for (int i = 0; i < tab_container->get_tab_count(); i++) {
|
||||
ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_tab_control(i));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue