Skip to content

Commit

Permalink
Merge pull request #38 from aglkm/submenu_fix
Browse files Browse the repository at this point in the history
If action is not confirmed return to Submenu
  • Loading branch information
odudex authored Feb 6, 2024
2 parents ac4ac7b + e4fd04d commit 2944453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/krux/pages/settings_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def restore_settings(self):
except:
pass
self.ctx.power_manager.reboot()
return MENU_CONTINUE

def _settings_exit_check(self):
"""Handler for the 'Back' on settings screen"""
Expand Down
1 change: 1 addition & 0 deletions src/krux/pages/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def wipe_device(self):
self.erase_spiffs()
# Reboot so default settings take place and SPIFFS is formatted.
self.ctx.power_manager.reboot()
return MENU_CONTINUE

def print_test(self):
"""Handler for the 'Print Test QR' menu item"""
Expand Down

0 comments on commit 2944453

Please sign in to comment.