Skip to content

Commit

Permalink
Don't interrupt splashscreen with charge_state_changed callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsci committed May 13, 2022
1 parent eb370e9 commit 39b522e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/app_launcher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,6 @@ def launch(self, module_name, app_name):
get_scheduler().switch_app(app)

def charge_state_changed(self, charging):
self.update_title(redraw=True)
if not self.show_splash:
self.update_title(redraw=True)
get_scheduler().usb_plug_event(charging)

0 comments on commit 39b522e

Please sign in to comment.