QML UI: if the cloud credentials are set, open the dive list

There's no point opening to an empty screen and asking the user to do this
via the menu.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-07-27 09:15:04 -07:00
parent 975ca2e56a
commit 32e5a8d29a

View file

@ -21,6 +21,8 @@ QMLManager::QMLManager()
setCloudUserName(prefs.cloud_storage_email);
setCloudPassword(prefs.cloud_storage_password);
setSaveCloudPassword(prefs.save_password_local);
if (!same_string(prefs.cloud_storage_email, "") && !same_string(prefs.cloud_storage_password, ""))
loadDives();
}
QMLManager::~QMLManager()