Skip to content

Commit 68caa7f

Browse files
committed
partially revert 00eab09
waiting for a new release that has Textualize/textual#6224 merged
1 parent f458a54 commit 68caa7f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/rovr/core/file_list.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)