minor fixes

This commit is contained in:
Abhinav-grd 2021-03-29 16:59:01 +05:30
parent 173deab5da
commit 94903a2009
3 changed files with 8 additions and 8 deletions

View file

@ -56,7 +56,7 @@ export default function Sidebar(props: Props) {
}
function exportFiles() {
if (isElectron()) {
exportService.selectDirectory();
exportService.exportFiles(props.files);
} else {
setMessageModalView(true);
}

View file

@ -404,7 +404,7 @@ export default function Gallery(props: Props) {
setBannerErrorCode={setBannerErrorCode}
acceptedFiles={props.acceptedFiles}
/>
<Sidebar />
<Sidebar files={data} />
<UploadButton openFileUploader={props.openFileUploader} />
{!isFirstLoad && data.length == 0 ? (
<Jumbotron>

View file

@ -96,8 +96,8 @@ class DownloadManager {
decryptedBlob = await this.convertHEIC2JPEG(decryptedBlob);
}
return new ReadableStream({
start(controller: ReadableStreamDefaultController) {
controller.enqueue(decryptedBlob);
async start(controller: ReadableStreamDefaultController) {
controller.enqueue(await decryptedBlob.arrayBuffer());
controller.close();
},
});