Skip to content

Commit 7d480c9

Browse files
committed
Fix UI focus being shown when it shouldn't
1 parent 0fdb93c commit 7d480c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

editor/docks/groups_editor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ void GroupsEditor::_confirm_add() {
515515
undo_redo->add_undo_method(SceneTreeDock::get_singleton()->get_tree_editor(), "update_tree");
516516

517517
undo_redo->commit_action();
518-
tree->grab_focus();
518+
tree->grab_focus(true);
519519
}
520520

521521
void GroupsEditor::_confirm_rename() {
@@ -566,7 +566,7 @@ void GroupsEditor::_confirm_rename() {
566566

567567
undo_redo->commit_action();
568568

569-
tree->grab_focus();
569+
tree->grab_focus(true);
570570
}
571571

572572
void GroupsEditor::_confirm_delete() {
@@ -606,7 +606,7 @@ void GroupsEditor::_confirm_delete() {
606606
undo_redo->add_undo_method(this, "_update_tree");
607607

608608
undo_redo->commit_action();
609-
tree->grab_focus();
609+
tree->grab_focus(true);
610610
}
611611

612612
void GroupsEditor::_show_add_group_dialog() {

scene/main/viewport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ bool Viewport::_can_hide_focus_state() {
552552
}
553553

554554
void Viewport::_on_settings_changed() {
555-
if (!gui.hide_focus && _can_hide_focus_state()) {
555+
if (!gui.hide_focus || _can_hide_focus_state()) {
556556
return;
557557
}
558558

0 commit comments

Comments
 (0)