From 85dfbfe67d0823b9fc5c5ae8d00c46be4673d708 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 1 Apr 2020 07:34:18 -0700 Subject: 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 --- mobile-widgets/qmlmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3-70-g09d2