summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-01 07:34:18 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-04 12:00:24 -0700
commit85dfbfe67d0823b9fc5c5ae8d00c46be4673d708 (patch)
tree0e1d780ef10fb4d3626a5ae757e723eb7b9978a2 /mobile-widgets
parent8801ae857ebfc720fcbd812baae425bc8f90e65e (diff)
downloadsubsurface-85dfbfe67d0823b9fc5c5ae8d00c46be4673d708.tar.gz
mobile/startup: show progress update earlier
Instead of not showing a notification until after we are done loading the data into our models, tell the user that we are about to do that. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 56d17e728..170f1ff23 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -375,9 +375,10 @@ void QMLManager::openLocalThenRemote(QString url)
qPrefTechnicalDetails::set_show_ccr_setpoint(git_prefs.show_ccr_setpoint);
qPrefTechnicalDetails::set_show_ccr_sensors(git_prefs.show_ccr_sensors);
qPrefPartialPressureGas::set_po2(git_prefs.pp_graphs.po2);
+ // the following steps can take a long time, so provide updates
+ setNotificationText(tr("Processing %1 dives").arg(dive_table.nr));
process_loaded_dives();
MobileModels::instance()->reset();
- appendTextToLog(QStringLiteral("%1 dives loaded from cache").arg(dive_table.nr));
setNotificationText(tr("%1 dives loaded from local dive data file").arg(dive_table.nr));
}
if (qPrefCloudStorage::cloud_verification_status() == qPrefCloudStorage::CS_NEED_TO_VERIFY) {