Skip to content

Commit 3c20ae1

Browse files
committed
Fix: Fixed null exception with isRenaming (#13914)
1 parent ee2fb9e commit 3c20ae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Actions/Content/Selection/SelectAllAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public bool IsExecutable
3737

3838
bool isCommandPaletteOpen = page.ToolbarViewModel.IsCommandPaletteOpen;
3939
bool isEditing = page.ToolbarViewModel.IsEditModeEnabled;
40-
bool isRenaming = page.SlimContentPage.IsRenamingItem;
40+
bool isRenaming = page.SlimContentPage?.IsRenamingItem ?? false;
4141

4242
return isCommandPaletteOpen || (!isEditing && !isRenaming);
4343
}

0 commit comments

Comments
 (0)