Skip to content

Commit 8bf60db

Browse files
authored
Fixed: Fixed issue where the new item dialog cannot be canceled (#13846)
1 parent 6d10970 commit 8bf60db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Files.App/Actions/FileSystem/AddItemAction.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ await UIFilesystemHelpers.CreateFileFromDialogResultTypeAsync(
4949
viewModel.ResultType.ItemInfo,
5050
context.ShellPage!);
5151
}
52+
53+
viewModel.ResultType.ItemType = AddItemDialogItemType.Cancel;
5254
}
5355

5456
private void Context_PropertyChanged(object? sender, PropertyChangedEventArgs e)

0 commit comments

Comments
 (0)