Skip to content

Commit

Permalink
Make sure on_deactivate forwards call to parent class.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgalambos committed May 12, 2022
1 parent df1a18f commit c3119de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/emflogo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ def update(self):
display.vscsad(40 + self.i)

def on_deactivate(self):
super().on_deactivate()
display.vscsad(40) # Scroll screen back up to top
self.timer_task.cancel()
1 change: 1 addition & 0 deletions modules/wifi_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def on_activate(self):
super().on_activate()

def on_deactivate(self):
super().on_deactivate()
if self.connection_timer:
self.connection_timer.cancel()
self.connection_timer = None
Expand Down

0 comments on commit c3119de

Please sign in to comment.