Skip to content

Commit

Permalink
Fix: Fixed issue where a text box would remain visible in the tiles l…
Browse files Browse the repository at this point in the history
…ayout when returning from a new tab (#12693)
  • Loading branch information
hishitetsu authored Jun 22, 2023
1 parent dfb0caa commit 5b710c5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Files.App/Views/LayoutModes/GridViewBrowser.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ override public void StartRenameItem()
OldItemName = textBlock.Text;
textBlock.Visibility = Visibility.Collapsed;
textBox.Visibility = Visibility.Visible;

if (textBox.FindParent<Grid>() is null)
{
textBlock.Visibility = Visibility.Visible;
textBox.Visibility = Visibility.Collapsed;
return;
}
}

textBox.Focus(FocusState.Pointer);
Expand Down

0 comments on commit 5b710c5

Please sign in to comment.