Skip to content

Commit

Permalink
Add missing CheckTabEnabled function also to TabCellOutline
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbhr committed Jan 22, 2025
1 parent 133ca00 commit de19c9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions saenopy/gui/orientation/modules/TabCellOutline.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ def __init__(self, parent: "BatchEvaluate"):
brush = QtGui.QBrush(QtGui.QColor(255, 0, 0))
self.center.setBrush(brush)

def checkTabEnabled(self, result: ResultOrientation) -> bool:
# whether the tab should be enabled for this Result object
return self.result.orientation_map is not None


def setResult(self, result: ResultOrientation):
super().setResult(result)
self.update_display()
Expand Down

0 comments on commit de19c9b

Please sign in to comment.