Skip to content

Commit 103acc4

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
fix: allow second instance on macOS
Signed-off-by: Akos Kitta <[email protected]>
1 parent c3dc7c6 commit 103acc4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: arduino-ide-extension/src/electron-main/theia/electron-main-application.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,7 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
356356
argv: string[],
357357
cwd: string
358358
): Promise<void> {
359-
if (
360-
!os.isOSX &&
361-
(await this.launchFromArgs({ cwd, argv, secondInstance: true }))
362-
) {
359+
if (await this.launchFromArgs({ cwd, argv, secondInstance: true })) {
363360
// Application has received a file in its arguments
364361
return;
365362
}

0 commit comments

Comments
 (0)