We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 185bf62 commit 160c37aCopy full SHA for 160c37a
1 file changed
emain/emain-ipc.ts
@@ -141,6 +141,7 @@ function saveImageFileWithNativeDialog(
141
}
142
const ww = electron.BrowserWindow.fromWebContents(sender);
143
if (ww == null) {
144
+ readStream.destroy();
145
return;
146
147
const mimeToExtension: { [key: string]: string } = {
@@ -169,6 +170,7 @@ function saveImageFileWithNativeDialog(
169
170
})
171
.then((file) => {
172
if (file.canceled) {
173
174
175
176
const writeStream = fs.createWriteStream(file.filePath);
0 commit comments