File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { BoxLayout, Widget } from '@lumino/widgets';
15
15
/**
16
16
* The Rise application shell token.
17
17
*/
18
- export const IRetroShell = new Token < RiseShell > (
18
+ export const IRiseShell = new Token < RiseShell > (
19
19
'jupyterlab-rise-application:IRiseShell'
20
20
) ;
21
21
@@ -60,8 +60,9 @@ export class RiseShell extends Widget implements JupyterFrontEnd.IShell {
60
60
area ?: string ,
61
61
options ?: DocumentRegistry . IOpenOptions
62
62
) : void {
63
- if ( ( this . layout as BoxLayout ) . widgets . length > 0 ) {
64
- // pass no-op
63
+ if ( ( this . layout as BoxLayout ) . widgets . length > 0 || area !== 'rise' ) {
64
+ // Bail
65
+ return ;
65
66
}
66
67
BoxLayout . setStretch ( widget , 1 ) ;
67
68
( this . layout as BoxLayout ) . addWidget ( widget ) ;
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ export const plugin: JupyterFrontEndPlugin<void> = {
146
146
// notebookPanel.toolbar.dispose();
147
147
notebookPanel . toolbar . hide ( ) ;
148
148
149
- app . shell . add ( notebookPanel ) ;
149
+ app . shell . add ( notebookPanel , 'rise' ) ;
150
150
} ) ;
151
151
}
152
152
} ;
You can’t perform that action at this time.
0 commit comments