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 2eee5cb484
commit 84bd15d243
1 changed files with 1 additions and 1 deletions

View File

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