mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
f9ccbabb3d
commit
a37499bccd
2 changed files with 6 additions and 0 deletions
|
@ -165,6 +165,7 @@ void QMLManager::usbRescan()
|
||||||
QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
||||||
m_verboseEnabled(false),
|
m_verboseEnabled(false),
|
||||||
m_diveListProcessing(false),
|
m_diveListProcessing(false),
|
||||||
|
m_initialized(false),
|
||||||
m_pluggedInDeviceName(""),
|
m_pluggedInDeviceName(""),
|
||||||
m_showNonDiveComputers(false),
|
m_showNonDiveComputers(false),
|
||||||
undoAction(Command::undoAction(this)),
|
undoAction(Command::undoAction(this)),
|
||||||
|
@ -518,6 +519,8 @@ void QMLManager::finishSetup()
|
||||||
appendTextToLog(tr("no cloud credentials"));
|
appendTextToLog(tr("no cloud credentials"));
|
||||||
setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT);
|
setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT);
|
||||||
}
|
}
|
||||||
|
m_initialized = true;
|
||||||
|
emit initializedChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
QMLManager::~QMLManager()
|
QMLManager::~QMLManager()
|
||||||
|
|
|
@ -59,6 +59,7 @@ class QMLManager : public QObject {
|
||||||
Q_PROPERTY(QString undoText READ getUndoText NOTIFY undoTextChanged) // this is a read-only property
|
Q_PROPERTY(QString undoText READ getUndoText NOTIFY undoTextChanged) // this is a read-only property
|
||||||
Q_PROPERTY(QString redoText READ getRedoText NOTIFY redoTextChanged) // this is a read-only property
|
Q_PROPERTY(QString redoText READ getRedoText NOTIFY redoTextChanged) // this is a read-only property
|
||||||
Q_PROPERTY(bool diveListProcessing MEMBER m_diveListProcessing WRITE setDiveListProcessing NOTIFY diveListProcessingChanged)
|
Q_PROPERTY(bool diveListProcessing MEMBER m_diveListProcessing WRITE setDiveListProcessing NOTIFY diveListProcessingChanged)
|
||||||
|
Q_PROPERTY(bool initialized MEMBER m_initialized NOTIFY initializedChanged)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QMLManager();
|
QMLManager();
|
||||||
|
@ -248,6 +249,7 @@ private:
|
||||||
bool m_locationServiceAvailable;
|
bool m_locationServiceAvailable;
|
||||||
bool m_verboseEnabled;
|
bool m_verboseEnabled;
|
||||||
bool m_diveListProcessing;
|
bool m_diveListProcessing;
|
||||||
|
bool m_initialized;
|
||||||
GpsLocation *locationProvider;
|
GpsLocation *locationProvider;
|
||||||
bool m_loadFromCloud;
|
bool m_loadFromCloud;
|
||||||
static QMLManager *m_instance;
|
static QMLManager *m_instance;
|
||||||
|
@ -291,6 +293,7 @@ signals:
|
||||||
void locationServiceAvailableChanged();
|
void locationServiceAvailableChanged();
|
||||||
void verboseEnabledChanged();
|
void verboseEnabledChanged();
|
||||||
void diveListProcessingChanged();
|
void diveListProcessingChanged();
|
||||||
|
void initializedChanged();
|
||||||
void logTextChanged();
|
void logTextChanged();
|
||||||
void loadFromCloudChanged();
|
void loadFromCloudChanged();
|
||||||
void startPageTextChanged();
|
void startPageTextChanged();
|
||||||
|
|
Loading…
Reference in a new issue