Skip to content

The swiss army knife of lossless video/audio editing

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

Mikael Finstad46323867ff2d
diff --git a/src/App.jsx b/src/App.jsx
index c0911ee8..2a6dc69e 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -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) {