@@ -799,7 +799,10 @@ namespace FlaxEditor.Windows
|
|||||||
if (proxy == null)
|
if (proxy == null)
|
||||||
throw new ArgumentNullException(nameof(proxy));
|
throw new ArgumentNullException(nameof(proxy));
|
||||||
|
|
||||||
|
// Setup name
|
||||||
string name = initialName ?? proxy.NewItemName;
|
string name = initialName ?? proxy.NewItemName;
|
||||||
|
if (!proxy.IsFileNameValid(name) || Utilities.Utils.HasInvalidPathChar(name))
|
||||||
|
name = proxy.NewItemName;
|
||||||
|
|
||||||
// If the proxy can not be created in the current folder, then navigate to the content folder
|
// If the proxy can not be created in the current folder, then navigate to the content folder
|
||||||
if (!proxy.CanCreate(CurrentViewFolder))
|
if (!proxy.CanCreate(CurrentViewFolder))
|
||||||
|
|||||||
Reference in New Issue
Block a user