Skip to content

Commit

Permalink
Apply min-max limit on scene-storyline progress editor, closes #1287
Browse files Browse the repository at this point in the history
  • Loading branch information
zkovari committed Sep 9, 2024
1 parent 95feefd commit 9a98add
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main/python/plotlyst/view/widget/scene/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,19 +191,16 @@ def _changeCharge(self, charge: int):
self.refresh()
self.charged.emit()

@overrides
def _updateButtons(self):
if not self.negCharge.isEnabled():
self.negCharge.setEnabled(True)
self.negCharge.setVisible(True)
if not self.posCharge.isEnabled():
self.posCharge.setEnabled(True)
self.posCharge.setVisible(True)
if self.charge == 3:
if self.charge() == 3:
self.posCharge.setDisabled(True)
self.posCharge.setHidden(True)
if self.charge == -3:
if self.charge() == -3:
self.negCharge.setDisabled(True)
self.negCharge.setHidden(True)


class ScenePlotSelectorMenu(MenuWidget):
Expand Down

0 comments on commit 9a98add

Please sign in to comment.