1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 02:12:30 +01:00

tune mas version

This commit is contained in:
Mikael Finstad 2020-04-01 18:22:52 +08:00
parent 296e844323
commit 649042d9b6

View File

@ -104,6 +104,7 @@ const calcShouldShowKeyframes = (zoomedDuration) => (zoomedDuration != null && z
const commonFormats = ['mov', 'mp4', 'matroska', 'mp3', 'ipod'];
const isMasBuild = window.process.mas;
// TODO flex
const topBarHeight = 32;
@ -1170,7 +1171,7 @@ const App = memo(() => {
const outDirPath = getOutDir(customOutDir, firstFile);
const hasDirWriteAccess = await checkDirWriteAccess(outDirPath);
if (!hasDirWriteAccess) {
if (window.process.mas) {
if (isMasBuild) {
await Swal.fire({
title: i18n.t('Mac OS file security'),
icon: 'info',
@ -1456,7 +1457,7 @@ const App = memo(() => {
), [AutoExportToggler, askBeforeClose, autoMerge, autoSaveProjectFile, customOutDir, invertCutSegments, keyframeCut, renderCaptureFormatButton, renderOutFmt, timecodeShowFrames, setOutputDir, onWheelTunerRequested, language]);
useEffect(() => {
loadMifiLink().then(setMifiLink);
if (!isMasBuild) loadMifiLink().then(setMifiLink);
}, []);
useEffect(() => {