mobile: add indication if the app has finished initializing

This will help us to ensure that notifications are actually shown on the
UI during the startup phase.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-04-01 06:10:18 -07:00
parent f9ccbabb3d
commit a37499bccd
2 changed files with 6 additions and 0 deletions

View file

@ -165,6 +165,7 @@ void QMLManager::usbRescan()
QMLManager::QMLManager() : m_locationServiceEnabled(false),
m_verboseEnabled(false),
m_diveListProcessing(false),
m_initialized(false),
m_pluggedInDeviceName(""),
m_showNonDiveComputers(false),
undoAction(Command::undoAction(this)),
@ -518,6 +519,8 @@ void QMLManager::finishSetup()
appendTextToLog(tr("no cloud credentials"));
setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT);
}
m_initialized = true;
emit initializedChanged();
}
QMLManager::~QMLManager()