minor fixes
This commit is contained in:
parent
173deab5da
commit
94903a2009
|
@ -56,7 +56,7 @@ export default function Sidebar(props: Props) {
|
|||
}
|
||||
function exportFiles() {
|
||||
if (isElectron()) {
|
||||
exportService.selectDirectory();
|
||||
exportService.exportFiles(props.files);
|
||||
} else {
|
||||
setMessageModalView(true);
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue