Skip to content

Commit 57fcc30

Browse files
Ensure ApplicationShellOptions are properly used for shell init
Fixes #12982
1 parent 4c8a64d commit 57fcc30

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/core/src/browser/shell/application-shell.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,12 @@ export class ApplicationShell extends Widget {
266266
@inject(SidePanelHandlerFactory) protected readonly sidePanelHandlerFactory: () => SidePanelHandler,
267267
@inject(SplitPositionHandler) protected splitPositionHandler: SplitPositionHandler,
268268
@inject(FrontendApplicationStateService) protected readonly applicationStateService: FrontendApplicationStateService,
269-
@inject(ApplicationShellOptions) @optional() options: RecursivePartial<ApplicationShell.Options> = {},
269+
@inject(ApplicationShellOptions) @optional() protected shellOptions: RecursivePartial<ApplicationShell.Options> = {},
270270
@inject(CorePreferences) protected readonly corePreferences: CorePreferences,
271271
@inject(SaveResourceService) protected readonly saveResourceService: SaveResourceService,
272272
@inject(SecondaryWindowHandler) protected readonly secondaryWindowHandler: SecondaryWindowHandler,
273273
) {
274-
super(options as Widget.IOptions);
274+
super(shellOptions as Widget.IOptions);
275275
}
276276

277277
@postConstruct()
@@ -307,15 +307,15 @@ export class ApplicationShell extends Widget {
307307
this.options = {
308308
bottomPanel: {
309309
...ApplicationShell.DEFAULT_OPTIONS.bottomPanel,
310-
...this.options?.bottomPanel || {}
310+
...this.shellOptions?.bottomPanel || {}
311311
},
312312
leftPanel: {
313313
...ApplicationShell.DEFAULT_OPTIONS.leftPanel,
314-
...this.options?.leftPanel || {}
314+
...this.shellOptions?.leftPanel || {}
315315
},
316316
rightPanel: {
317317
...ApplicationShell.DEFAULT_OPTIONS.rightPanel,
318-
...this.options?.rightPanel || {}
318+
...this.shellOptions?.rightPanel || {}
319319
}
320320
};
321321

0 commit comments

Comments
 (0)