Skip to content

Commit 42bc72a

Browse files
authored
Fix: Naming an item at its creation properly sets the name (#11060)
1 parent c17f9e3 commit 42bc72a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Files.App/Helpers/DynamicDialogFactory.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ public static DynamicDialog GetFor_RenameDialog()
7979
dialog!.ViewModel.DynamicButtonsEnabled = isInputValid
8080
? DynamicDialogButtons.Primary | DynamicDialogButtons.Cancel
8181
: DynamicDialogButtons.Cancel;
82+
if (isInputValid)
83+
dialog.ViewModel.AdditionalData = inputText.Text;
8284
};
8385

8486
inputText.Loaded += (s, e) =>

0 commit comments

Comments
 (0)