Et2VfsSelectDialog: Fix save as did not use the new filename

This commit is contained in:
nathan 2024-03-01 14:37:53 -07:00
parent eef8eb8432
commit c270189626

View File

@ -393,12 +393,12 @@ export class Et2VfsSelectDialog
break;
case "saveas":
// Saveas wants a full path, including filename
this.value = [this.path + "/" + this.filename];
this.value = [this.path + "/" + this._filenameNode.value ?? this.filename];
// Check for existing file, ask what to do
if(this.fileInfo(this.value[0]))
{
let result = await this.overwritePrompt(this.filename);
let result = await this.overwritePrompt(this._filenameNode ?? this.filename);
if(result == null)
{
return;