Skip to content

Commit 8cc7298

Browse files
committed
Suggested changes
1 parent 6b04471 commit 8cc7298

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Files.App/Helpers/Dialog/DynamicDialogFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public static DynamicDialog GetFor_CreateItemDialog(string itemType)
104104

105105
dialog = new DynamicDialog(new DynamicDialogViewModel()
106106
{
107-
TitleText = string.Format("CreateNewItemTitle".GetLocalizedResource(), itemType.ToLower()),
107+
TitleText = string.Format("CreateNewItemTitle".GetLocalizedResource(), itemType),
108108
SubtitleText = null,
109109
DisplayControl = new Grid()
110110
{

src/Files.App/Helpers/UI/UIFilesystemHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static async Task CreateFileFromDialogResultTypeAsync(AddItemDialogItemTy
8787
string? userInput = null;
8888
if (itemType != AddItemDialogItemType.File || itemInfo?.Command is null)
8989
{
90-
DynamicDialog dialog = DynamicDialogFactory.GetFor_CreateItemDialog(itemType.ToString());
90+
DynamicDialog dialog = DynamicDialogFactory.GetFor_CreateItemDialog(itemInfo?.Name ?? itemType.ToString().ToLower());
9191
await dialog.TryShowAsync(); // Show rename dialog
9292

9393
if (dialog.DynamicResult != DynamicDialogResult.Primary)

0 commit comments

Comments
 (0)