Don't show capture screenshot when "Hide informational notifications" #802

pull/841/head
Mikael Finstad 5 years ago
parent 4e06dbcb9e
commit 46323867ff
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -1104,12 +1104,12 @@ const App = memo(() => {
? await captureFrameFfmpeg({ customOutDir, filePath, currentTime, captureFormat, enableTransferTimestamps })
: await captureFrameFromTag({ customOutDir, filePath, currentTime, captureFormat, video, enableTransferTimestamps });
openDirToast({ dirPath: outputDir, text: `${i18n.t('Screenshot captured to:')} ${outPath}` });
if (!hideAllNotifications) openDirToast({ dirPath: outputDir, text: `${i18n.t('Screenshot captured to:')} ${outPath}` });
} catch (err) {
console.error(err);
errorToast(i18n.t('Failed to capture frame'));
}
}, [filePath, captureFormat, customOutDir, previewFilePath, outputDir, enableTransferTimestamps]);
}, [filePath, captureFormat, customOutDir, previewFilePath, outputDir, enableTransferTimestamps, hideAllNotifications]);
const changePlaybackRate = useCallback((dir) => {
if (canvasPlayerEnabled) {

Loading…
Cancel
Save