Skip to content

Commit

Permalink
faster deletion of items in the batch view
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Dec 8, 2023
1 parent ee4e591 commit 39e67cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/asammdf/gui/widgets/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def __init__(
self.setAcceptDrops(True)

self.files_list.model().rowsInserted.connect(self.update_channel_tree)
self.files_list.model().rowsRemoved.connect(self.update_channel_tree)
self.files_list.itemsDeleted.connect(self.update_channel_tree)

self.filter_tree.itemChanged.connect(self.filter_changed)
self._selected_filter = set()
Expand Down Expand Up @@ -1068,6 +1068,8 @@ def update_channel_tree(self, *args):
if not count:
self.filter_tree.clear()
return
elif self.filter_tree.topLevelItemCount():
return
else:
uuid = os.urandom(6).hex()

Expand Down

0 comments on commit 39e67cc

Please sign in to comment.