Skip to content

Commit

Permalink
Ensure slot has focus when active
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Wootten committed Jan 28, 2024
1 parent 7482748 commit be1d219
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/View/ViewContainer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ namespace Files.View {
public void set_active_state (bool is_active, bool animate = true) {
var aslot = get_current_slot ();
if (aslot != null) {
aslot.grab_focus ();
/* Since async loading it may not have been determined whether slot is loadable */
aslot.set_active_state (is_active, animate);
if (is_active) {
Expand Down

0 comments on commit be1d219

Please sign in to comment.