Show save path in successful toast notification

This commit is contained in:
Gio 2020-01-03 13:57:24 -06:00
parent 9bcfcfb2ee
commit 6e5b7af54c
1 changed files with 1 additions and 1 deletions

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

@ -393,7 +393,7 @@ var SaveToRedux = (() => {
.pipe(FsModule.createWriteStream(path))
.on('finish', () => {
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 }));
} else if (res.statusCode == 404) BdApi.showToast('Image does not exist!', { type: 'error' });