|
|
|
|
@ -117,6 +117,7 @@ const App = memo(() => {
|
|
|
|
|
const [mifiLink, setMifiLink] = useState();
|
|
|
|
|
const [invertCutSegments, setInvertCutSegments] = useState(false);
|
|
|
|
|
const [autoExportExtraStreams, setAutoExportExtraStreams] = useState(true);
|
|
|
|
|
const [askBeforeClose, setAskBeforeClose] = useState(true);
|
|
|
|
|
|
|
|
|
|
const videoRef = useRef();
|
|
|
|
|
const timelineWrapperRef = useRef();
|
|
|
|
|
@ -808,6 +809,10 @@ const App = memo(() => {
|
|
|
|
|
electron.ipcRenderer.send('renderer-ready');
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
electron.ipcRenderer.send('setAskBeforeClose', askBeforeClose);
|
|
|
|
|
}, [askBeforeClose]);
|
|
|
|
|
|
|
|
|
|
const extractAllStreams = useCallback(async () => {
|
|
|
|
|
if (!filePath) return;
|
|
|
|
|
|
|
|
|
|
@ -1053,8 +1058,7 @@ const App = memo(() => {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function renderSettings() {
|
|
|
|
|
return (
|
|
|
|
|
const renderSettings = () => (
|
|
|
|
|
<Fragment>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Output format (default autodetected)</td>
|
|
|
|
|
@ -1161,9 +1165,20 @@ const App = memo(() => {
|
|
|
|
|
</button>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Ask for confirmation when closing app?</td>
|
|
|
|
|
<td>
|
|
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
onClick={() => setAskBeforeClose(v => !v)}
|
|
|
|
|
>
|
|
|
|
|
{askBeforeClose ? 'Ask before closing' : 'Don\'t ask before closing'}
|
|
|
|
|
</button>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</Fragment>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
loadMifiLink().then(setMifiLink);
|
|
|
|
|
|