Skip to content

Commit

Permalink
fix: fix accidental removal of a function in interface.py during merging
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasfremming committed Nov 12, 2024
1 parent b0e78b7 commit a2632b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ def add_button(self, button: Button) -> Button:
self.buttons.remove(button)
return button


def add_only_one_simultaneously_buttons(self, button: Button) -> Button:
self.only_one_simultaneously_buttons.append(button)
self.buttons.append(button) #don't have to append on both lists manually
return button

def remove_only_one_simultaneously_buttons(self, button: Button) -> Button:
if button in self.only_one_simultaneously_buttons:
self.buttons.remove(button)
Expand Down

0 comments on commit a2632b3

Please sign in to comment.