File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,8 @@ async def update_file_list(
226226 # special check for up tree
227227 self .app .query_one ("#up" ).disabled = cwd == path .dirname (cwd )
228228
229- self .set_options (self .list_of_options )
229+ self .clear_options ()
230+ self .add_options (self .list_of_options )
230231 # session handler
231232 self .app .query_one ("#path_switcher" ).value = cwd + (
232233 "" if cwd .endswith ("/" ) else "/"
@@ -341,7 +342,8 @@ async def dummy_update_file_list(
341342 disabled = True ,
342343 )
343344 )
344- self .set_options (self .list_of_options )
345+ self .clear_options ()
346+ self .add_options (self .list_of_options )
345347 self .parent .border_subtitle = ""
346348
347349 @work (exclusive = True )
@@ -351,6 +353,7 @@ async def create_archive_list(self, file_list: list[str]) -> None:
351353 Args:
352354 file_list (list[str]): List of file paths from archive contents.
353355 """
356+ self .clear_options ()
354357 self .list_of_options = []
355358
356359 if not file_list :
@@ -379,7 +382,7 @@ async def create_archive_list(self, file_list: list[str]) -> None:
379382 start_time = time ()
380383 await asyncio .sleep (0 )
381384
382- self .set_options (self .list_of_options )
385+ self .add_options (self .list_of_options )
383386 self .parent .border_subtitle = ""
384387
385388 async def on_selection_list_selected_changed (
You can’t perform that action at this time.
0 commit comments