qPref: add ability to remember recently used dive computers

This does feel clumsy and complicated. This is a lot of special case
handling and a lot of boilerplate for something that really should be
quite simple.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-09-20 12:03:09 -07:00
parent 5b37d87e2d
commit 77a5c9ac65
4 changed files with 167 additions and 20 deletions

View file

@ -99,6 +99,10 @@ struct preferences {
// ********** DiveComputer **********
dive_computer_prefs_t dive_computer;
dive_computer_prefs_t dive_computer1;
dive_computer_prefs_t dive_computer2;
dive_computer_prefs_t dive_computer3;
dive_computer_prefs_t dive_computer4;
// ********** Display **********
bool display_invalid_dives;