Repository navigation
Conversation
20db5f7 to
8388c15
Compare
Context Menu disabled for folder in Tree View mypy errors fixed for linux tests
| self.setColumnWidth(0, 300) | ||
| self.setColumnWidth(1, 40) | ||
| self.setIndentation(15) # indentation for the TreeView | ||
|
|
There was a problem hiding this comment.
Please use the constants when refereing to the columns, not some direct numbers
| self.headerItem().setText(0, "Git Repo Path") | ||
| self.headerItem().setText(1, "") | ||
|
|
||
| self.setSelectionMode(QAbstractItemView.SelectionMode.ExtendedSelection) |
There was a problem hiding this comment.
Please use the constants when refereing to the columns, not some direct numbers
There was a problem hiding this comment.
And if you need to change the columns meaning, you need to do it in mg_const.py with the COL_TITLES
| self.header().setSortIndicatorShown(True) | ||
| self.headerItem().setToolTip(mg_const.COL_UPDATE, mg_const.MSG_TOOLTIP_UPDATE) | ||
| self.headerItem().setToolTip(1, mg_const.MSG_TOOLTIP_UPDATE) | ||
| self.headerItem().setToolTip(mg_const.COL_STATUS, mg_const.MSG_TOOLTIP_STATUS) |
There was a problem hiding this comment.
Please use the constants when refereing to the columns, not some direct numbers
|
|
||
| if item is None or not hasattr(item, 'repoInfo'): | ||
| dbg('Clic droit sur un dossier ou dans le vide : menu ignoré') | ||
| return |
There was a problem hiding this comment.
text should be in english !
There was a problem hiding this comment.
why do we need to ignore such clicks ?
|
I did a first pass on comments. I need to review a bit more. @bryanthmr please correct the first issues and update the PR. I'm curious also why the CI is failing |
|
PR has been reworked as part of #20 |
You can now select a tree view for your repos to have a better vision of your repos composition.
Added icons to see if the component is a :