From 75839487b07a71f174bcac1109481505648e57bb Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Mon, 28 Jan 2019 12:50:21 +0100 Subject: [PATCH] change menu text --- src/menu.js | 2 +- src/renderer.jsx | 5 +---- src/util.js | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/menu.js b/src/menu.js index 42a814d5..bb846af5 100644 --- a/src/menu.js +++ b/src/menu.js @@ -41,7 +41,7 @@ module.exports = (app, mainWindow, newVersion) => { }, }, { - label: 'Set custom start time offset', + label: 'Set custom start offset/timecode', click() { mainWindow.webContents.send('set-start-offset', true); }, diff --git a/src/renderer.jsx b/src/renderer.jsx index 54af5348..7d3bdaf5 100644 --- a/src/renderer.jsx +++ b/src/renderer.jsx @@ -174,10 +174,7 @@ class App extends React.Component { startTimeOffsetOld !== undefined ? formatDuration(startTimeOffsetOld) : undefined, ); - if (startTimeOffset === undefined) { - console.log('Cancelled'); - return; - } + if (startTimeOffset === undefined) return; this.setState({ startTimeOffset }); }); diff --git a/src/util.js b/src/util.js index a191d14f..d9c24350 100644 --- a/src/util.js +++ b/src/util.js @@ -83,7 +83,7 @@ function setFileNameTitle(filePath) { async function promptTimeOffset(inputValue) { const { value } = await swal.fire({ title: 'Set custom start time offset', - text: 'Instead of video apparently starting at 0, you can offset by a specified value (useful for timecodes)', + text: 'Instead of video apparently starting at 0, you can offset by a specified value (useful for viewing/cutting videos according to timecodes)', input: 'text', inputValue: inputValue || '', showCancelButton: true,