Show save path in successful toast notification
This commit is contained in:
parent
a4ef267b4d
commit
59f46f2b3b
|
@ -400,7 +400,7 @@ var SaveToRedux = (() => {
|
||||||
.pipe(FsModule.createWriteStream(path))
|
.pipe(FsModule.createWriteStream(path))
|
||||||
.on('finish', () => {
|
.on('finish', () => {
|
||||||
if (openOnSave) openItem(path);
|
if (openOnSave) openItem(path);
|
||||||
BdApi.showToast('Saved!', { type: 'success' });
|
BdApi.showToast(`Saved to '${path}'`, { type: 'success' });
|
||||||
})
|
})
|
||||||
.on('error', e => BdApi.showToast(`Failed to save! ${e}`, { type: 'error', timeout: 10000 }));
|
.on('error', e => BdApi.showToast(`Failed to save! ${e}`, { type: 'error', timeout: 10000 }));
|
||||||
} else if (res.statusCode == 404) BdApi.showToast('Image does not exist!', { type: 'error' });
|
} else if (res.statusCode == 404) BdApi.showToast('Image does not exist!', { type: 'error' });
|
||||||
|
|
Loading…
Reference in New Issue