Show save path in successful toast notification

This commit is contained in:
Gio 2020-01-03 13:57:24 -06:00 committed by _Lighty_
parent a4ef267b4d
commit 59f46f2b3b
1 changed files with 1 additions and 1 deletions

2
Plugins/SaveToRedux/SaveToRedux.plugin.js Executable file → Normal file
View File

@ -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' });