mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-25 03:33:14 +01:00
Allow pass filename cmd line
https://github.com/mifi/lossless-cut/issues/9
This commit is contained in:
parent
b622df997e
commit
3d47759b0f
@ -48,3 +48,10 @@ app.on('activate', () => {
|
|||||||
createWindow();
|
createWindow();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
electron.ipcMain.on('renderer-ready', () => {
|
||||||
|
if (!isDev) {
|
||||||
|
const fileToOpen = process.argv[1];
|
||||||
|
if (fileToOpen) mainWindow.webContents.send('file-opened', [fileToOpen]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
@ -111,6 +111,8 @@ class App extends React.Component {
|
|||||||
keyboardJs.bind('e', () => this.cutClick());
|
keyboardJs.bind('e', () => this.cutClick());
|
||||||
keyboardJs.bind('i', () => this.setCutStart());
|
keyboardJs.bind('i', () => this.setCutStart());
|
||||||
keyboardJs.bind('o', () => this.setCutEnd());
|
keyboardJs.bind('o', () => this.setCutEnd());
|
||||||
|
|
||||||
|
electron.ipcRenderer.send('renderer-ready');
|
||||||
}
|
}
|
||||||
|
|
||||||
onPlay(playing) {
|
onPlay(playing) {
|
||||||
|
Loading…
Reference in New Issue
Block a user