mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make sure we remember the dive computer vendor and model
Preferences work best if you not only write them, but read them again as well. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c907efb22e
commit
9b4abca9f4
1 changed files with 7 additions and 0 deletions
|
@ -2264,6 +2264,13 @@ void SettingsObjectWrapper::load()
|
|||
prefs.decosac = s.value("decosac", prefs.decosac).toInt();
|
||||
s.endGroup();
|
||||
|
||||
s.beginGroup("DiveComputer");
|
||||
GET_TXT("dive_computer_vendor",dive_computer.vendor);
|
||||
GET_TXT("dive_computer_product", dive_computer.product);
|
||||
GET_TXT("dive_computer_device", dive_computer.device);
|
||||
GET_INT("dive_computer_download_mode", dive_computer.download_mode);
|
||||
s.endGroup();
|
||||
|
||||
s.beginGroup("UpdateManager");
|
||||
prefs.update_manager.dont_check_exists = s.contains("DontCheckForUpdates");
|
||||
prefs.update_manager.dont_check_for_updates = s.value("DontCheckForUpdates").toBool();
|
||||
|
|
Loading…
Add table
Reference in a new issue