File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,9 @@ export const driveFileBrowser: JupyterFrontEndPlugin<void> = {
148148 }
149149 ) ;
150150
151+ // Add commands
152+ Private . addCommands ( app , drive , driveBrowser ) ;
153+
151154 const updateVisibility = ( ) => {
152155 // Visibility of context menu and toolbar commands changed.
153156 if ( driveBrowser . model . path !== 's3:' ) {
@@ -162,9 +165,7 @@ export const driveFileBrowser: JupyterFrontEndPlugin<void> = {
162165
163166 // Listen for path changes.
164167 driveBrowser . model . pathChanged . connect ( updateVisibility ) ;
165-
166- // Add commands
167- Private . addCommands ( app , drive , driveBrowser ) ;
168+ updateVisibility ( ) ;
168169
169170 // Connect the filebrowser toolbar to the settings registry for the plugin.
170171 setToolbar (
You can’t perform that action at this time.
0 commit comments