Skip to content

Commit

Permalink
Drop code fixing fingerprint column size after unlock
Browse files Browse the repository at this point in the history
- it has an off-by-one error so it is always executed on unlock, though it was intended to not be for last column
- disabling it doesn't seem to cause any issue, locking/unlocking doesn't seem to affect sizes anyway
  • Loading branch information
zas committed May 6, 2024
1 parent 89f025b commit 6b68aea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions picard/ui/itemviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,6 @@ def on_sort_indicator_changed(self, index, order):

def lock(self, is_locked):
super().lock(is_locked)
column_index = self.panel.columns.pos('~fingerprint')
if not self.is_locked and self.count() > column_index:
self.setSectionResizeMode(column_index, QtWidgets.QHeaderView.ResizeMode.Fixed)


class BaseTreeView(QtWidgets.QTreeWidget):
Expand Down

0 comments on commit 6b68aea

Please sign in to comment.