File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -286,17 +286,20 @@ def do_callback(self, changed=True):
286
286
def go_home (self ):
287
287
self .path_text = Path .cwd ().as_posix ()
288
288
self .file_listing = []
289
+ self .stop_loading ()
289
290
290
291
def move_up (self ):
291
292
self .path_text = self .path .parent .as_posix ()
292
293
self .file_listing = []
294
+ self .stop_loading ()
293
295
294
296
@param .depends ("file_listing" , watch = True )
295
297
def move_down (self ):
296
298
if self .file_listing :
297
299
filename = self .file_listing [0 ]
298
300
fn = self .path / filename
299
301
self .path_text = fn .as_posix ()
302
+ self .stop_loading ()
300
303
301
304
@param .depends ("path_text" , "refresh_control" , watch = True )
302
305
def validate (self ):
@@ -599,6 +602,7 @@ class HpcFileBrowser(FileBrowser):
599
602
def __init__ (self , uit_client , ** params ):
600
603
params ["uit_client" ] = uit_client
601
604
super ().__init__ (** params )
605
+ self .param .trigger ("uit_client" ) # for _initialize_path()
602
606
603
607
@property
604
608
def controls (self ):
@@ -617,11 +621,13 @@ def _initialize_path(self):
617
621
def go_home (self ):
618
622
self .path_text = self ._new_path (self .uit_client .HOME ).as_posix ()
619
623
self .file_listing = []
624
+ self .stop_loading ()
620
625
621
626
@HpcPath ._ensure_connected
622
627
def go_to_workdir (self ):
623
628
self .path_text = self ._new_path (self .uit_client .WORKDIR ).as_posix ()
624
629
self .file_listing = []
630
+ self .stop_loading ()
625
631
626
632
627
633
class AsyncHpcFileBrowser (HpcFileBrowser ):
You can’t perform that action at this time.
0 commit comments