Skip to content

Commit 5d56f38

Browse files
fix: subscribe to macos open-file event after early window is registered
1 parent 56ab874 commit 5d56f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
203203
console.log(`${config.applicationName} ${app.getVersion()}`);
204204
app.on('ready', () => app.setName(config.applicationName));
205205
const cwd = process.cwd();
206-
this.attachFileAssociations(cwd);
207206
this.useNativeWindowFrame =
208207
this.getTitleBarStyle(config) === 'native';
209208
this._config = await updateFrontendApplicationConfigFromPackageJson(
@@ -212,6 +211,7 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
212211
this._appInfo = updateAppInfo(this._appInfo, this._config);
213212
this.hookApplicationEvents();
214213
this.showInitialWindow(undefined);
214+
this.attachFileAssociations(cwd);
215215
const [port] = await Promise.all([
216216
this.startBackend(),
217217
app.whenReady(),

0 commit comments

Comments
 (0)