Skip to content

Commit

Permalink
fix: fix bug when clicking other container in list
Browse files Browse the repository at this point in the history
  • Loading branch information
pommee committed Jul 11, 2024
1 parent 0e9c531 commit f53d534
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,9 @@ def set_list_item_background(self, old_index: int, new_index: int):
new_item.classes |= {"selected"}

self.current_index = new_index
docker_manager.selected_container = str(new_item.children[0].renderable)
docker_manager.selected_container = docker_manager.containers.get(
str(new_item.children[0].renderable)
)
logs.border_title = docker_manager.selected_container.name

@on(TabbedContent.TabActivated)
Expand Down

0 comments on commit f53d534

Please sign in to comment.