Skip to content

Commit 101a91f

Browse files
yaira20x5bfa
andauthored
Update src/Files.App/Views/Shells/ModernShellPage.xaml.cs
Co-authored-by: 0x5BFA <[email protected]> Signed-off-by: Yair <[email protected]>
1 parent 1071d22 commit 101a91f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Views/Shells/ModernShellPage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public ModernShellPage() : base(new CurrentInstanceViewModel())
5656
private void ShellViewModel_DirectoryInfoUpdated(object sender, EventArgs e)
5757
{
5858
// Regular binding causes issues when refreshing the directory so we set the text manually
59-
if (FilterTextBox is not null && FilterTextBox.IsLoaded)
59+
if (FilterTextBox?.IsLoaded ?? false)
6060
FilterTextBox.Text = ShellViewModel.FilesAndFoldersFilter ?? string.Empty;
6161
}
6262

0 commit comments

Comments
 (0)