Skip to content

Commit d67fb1a

Browse files
Fixed issue in add clip
1 parent 0a49bad commit d67fb1a

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

src/main/main.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,15 @@ const createWindow = async () => {
253253

254254
mainWindow.on('ready-to-show', () => {
255255
if (!mainWindow) {
256-
throw new Error('"mainWindow" is not defined');
256+
throw new Error('"mainWindow" is not defined');
257257
}
258258
if (process.env.START_MINIMIZED) {
259-
mainWindow.minimize();
259+
mainWindow.minimize();
260260
} else {
261-
mainWindow.show();
261+
mainWindow.show();
262262
}
263+
264+
// mainWindow.webContents.openDevTools();
263265
});
264266

265267
mainWindow.on('closed', () => {

src/renderer/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import About from './routes/About';
1313

1414
import 'react-toastify/dist/ReactToastify.css';
1515

16-
const VERSION = "v1.1b";
16+
const VERSION = "v1.2.0 Preview";
1717

1818
let App = (props) => {
1919
const navigate = useNavigate();

src/renderer/routes/ClipEditor.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ let ClipEditor = () => {
2929

3030
const [videoLength, setVideoLength] = useState(0);
3131

32+
let game = "";
3233
if (params.type === "rifftrax") {
3334
game = "RiffTrax";
3435
} else if (params.type === "whatthedub") {
@@ -54,7 +55,7 @@ let ClipEditor = () => {
5455
let m = Math.floor((seconds % 3600) / 60);
5556
let s = Math.floor(seconds % 60);
5657
let ms = Math.floor((seconds - Math.trunc(seconds)) * 1000);
57-
58+
5859
return `${h.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")}:${s.toString().padStart(2, "0")},${ms.toString().padStart(3, "0")}`;
5960
}
6061

@@ -113,7 +114,7 @@ let ClipEditor = () => {
113114
if (sub.startTime < 0) {
114115
sub.startTime = 0;
115116
sub.endTime = sub.startTime + subLength;
116-
}
117+
}
117118
if (sub.endTime > videoLength * 1000) {
118119
sub.endTime = videoLength * 1000;
119120
sub.startTime = sub.endTime - subLength;
@@ -182,7 +183,7 @@ let ClipEditor = () => {
182183
onSelectSub={setCurrentSub}
183184
onSave={(title, number) => {addVideoToGame(title, number)}} />
184185
</div>
185-
<TimeLine
186+
<TimeLine
186187
timelineWidth={windowSize.width * 0.9}
187188
isPlaying={isPlaying}
188189
currentSub={currentSub}

0 commit comments

Comments
 (0)