mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-19 09:16:40 +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[],
|
argv: string[],
|
||||||
cwd: string
|
cwd: string
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
if (
|
if (await this.launchFromArgs({ cwd, argv, secondInstance: true })) {
|
||||||
!os.isOSX &&
|
|
||||||
(await this.launchFromArgs({ cwd, argv, secondInstance: true }))
|
|
||||||
) {
|
|
||||||
// Application has received a file in its arguments
|
// Application has received a file in its arguments
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user