Skip to content

Commit

Permalink
Fix signature to match RuleComponentUI
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHag committed May 5, 2024
1 parent 1a1493d commit b1b3ed6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/solaar/ui/rule_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def __parse(cls, v):
except (TypeError, ValueError):
return 0

def show(self, component, editable):
def show(self, component, editable=True):
super().show(component, editable)
with self.ignore_changes():
self.field_x.set_value(self.__parse(component.amounts[0] if len(component.amounts) >= 1 else 0))
Expand Down Expand Up @@ -220,7 +220,7 @@ def create_widgets(self):
self.widgets[self.field_c] = (3, 1, 1, 1)
self.widgets[self.field_d] = (4, 1, 1, 1)

def show(self, component, editable):
def show(self, component, editable=True):
super().show(component, editable)
with self.ignore_changes():
self.field_b.set_text(component.button)
Expand Down Expand Up @@ -289,7 +289,7 @@ def _clicked_del(self, _btn, pos):
self.show(self.component, editable=True)
self._on_update_callback()

def show(self, component, editable):
def show(self, component, editable=True):
n = len(component.args)
while len(self.fields) < n:
self._create_field()
Expand Down

0 comments on commit b1b3ed6

Please sign in to comment.