mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-19 01:06:39 +00:00
fix: allow second instance on macOS
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
parent
c3dc7c6307
commit
103acc4b7e
@ -356,10 +356,7 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
|
||||
argv: string[],
|
||||
cwd: string
|
||||
): Promise<void> {
|
||||
if (
|
||||
!os.isOSX &&
|
||||
(await this.launchFromArgs({ cwd, argv, secondInstance: true }))
|
||||
) {
|
||||
if (await this.launchFromArgs({ cwd, argv, secondInstance: true })) {
|
||||
// Application has received a file in its arguments
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user