Et2VfsSelectDialog: Fix double click closed without selecting file

This commit is contained in:
nathan 2024-03-15 15:52:24 -06:00
parent 5209ff8e4b
commit 4153103324

View File

@ -594,10 +594,10 @@ export class Et2VfsSelectDialog
// Not a dir, just select it
this.handleFileClick(event);
// If we only want one, we've got it. Close.
// If we only want one, we've got it. Close by clicking the primary button
if(!this.multiple)
{
this.hide();
this.shadowRoot.querySelector('et2-button[variant="primary"]')?.click();
}
}
}