Notify user about rotation in MKV

https://github.com/mifi/lossless-cut/discussions/661
pull/699/head
Mikael Finstad 6 years ago
parent 96fe4d9c1b
commit 6c2026c9a9
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -553,7 +553,10 @@ const App = memo(() => {
const increaseRotation = useCallback(() => { const increaseRotation = useCallback(() => {
setRotation((r) => (r + 90) % 450); setRotation((r) => (r + 90) % 450);
setHideCanvasPreview(false); setHideCanvasPreview(false);
}, []); // Matroska is known not to work, so we warn user. See https://github.com/mifi/lossless-cut/discussions/661
const supportsRotation = !['matroska', 'webm'].includes(fileFormat);
if (!supportsRotation && !hideAllNotifications) toast.fire({ text: i18n.t('Lossless rotation might not work with this file format. You may try changing to MP4') });
}, [hideAllNotifications, fileFormat]);
const assureOutDirAccess = useCallback(async (outFilePath) => { const assureOutDirAccess = useCallback(async (outFilePath) => {
// Reset if doesn't exist anymore // Reset if doesn't exist anymore

Loading…
Cancel
Save