mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-25 03:33:14 +01:00
fix error when opening LC first time on mac
This commit is contained in:
parent
7ca8524f12
commit
72145c46fc
@ -63,6 +63,7 @@ app.on('activate', () => {
|
||||
electron.ipcMain.on('renderer-ready', () => {
|
||||
if (!isDev) {
|
||||
const fileToOpen = process.argv[1];
|
||||
if (fileToOpen) mainWindow.webContents.send('file-opened', [fileToOpen]);
|
||||
// https://github.com/electron/electron/issues/3657
|
||||
if (fileToOpen && !fileToOpen.startsWith('-psn_')) mainWindow.webContents.send('file-opened', [fileToOpen]);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user