This PR adds the ability to check for, and initiate, an upgrade from the system menu.
In addition, this PR changes the UI to respond to the following OS signals:
SIGUSR1 - shows the system menu - happens when the power button is pressed, so that the user may shutdown from the menu
SIGHUP - restarts the system - happens when usbmount detects an SD card or USB drive change, so that the library is re-read
The general menu button definitions, and view rendering, has been refactored into a more modular, configurable form by standardising the buttons.py and view.py API so these modules can be dynamically imported from subpackages.
Finally, the long press is made a little more predictable by waiting slightly longer before it repeats the event. This means it's easier to create a single long press event, allowing more predictable navigation through books.
This PR adds the ability to check for, and initiate, an upgrade from the system menu.
In addition, this PR changes the UI to respond to the following OS signals:
The general menu button definitions, and view rendering, has been refactored into a more modular, configurable form by standardising the
buttons.py
andview.py
API so these modules can be dynamically imported from subpackages.Finally, the long press is made a little more predictable by waiting slightly longer before it repeats the event. This means it's easier to create a single long press event, allowing more predictable navigation through books.