mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile: introduce simple private helper updateAllGlobalLists()
As we need to update our new stringlist models on multiple locations, just refactor them into a new function. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
494ad26540
commit
e4c8d6968f
2 changed files with 7 additions and 0 deletions
|
@ -273,6 +273,11 @@ void QMLManager::openLocalThenRemote(QString url)
|
||||||
appendTextToLog(QStringLiteral("have cloud credentials, trying to connect"));
|
appendTextToLog(QStringLiteral("have cloud credentials, trying to connect"));
|
||||||
tryRetrieveDataFromBackend();
|
tryRetrieveDataFromBackend();
|
||||||
}
|
}
|
||||||
|
updateAllGlobalLists();
|
||||||
|
}
|
||||||
|
|
||||||
|
void QMLManager::updateAllGlobalLists()
|
||||||
|
{
|
||||||
buddyModel.updateModel(); emit buddyListChanged();
|
buddyModel.updateModel(); emit buddyListChanged();
|
||||||
suitModel.updateModel(); emit suitListChanged();
|
suitModel.updateModel(); emit suitListChanged();
|
||||||
divemasterModel.updateModel(); emit divemasterListChanged();
|
divemasterModel.updateModel(); emit divemasterListChanged();
|
||||||
|
@ -1101,6 +1106,7 @@ void QMLManager::changesNeedSaving()
|
||||||
#elif !defined(Q_OS_IOS)
|
#elif !defined(Q_OS_IOS)
|
||||||
saveChangesCloud(false);
|
saveChangesCloud(false);
|
||||||
#endif
|
#endif
|
||||||
|
updateAllGlobalLists();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QMLManager::openNoCloudRepo()
|
void QMLManager::openNoCloudRepo()
|
||||||
|
|
|
@ -243,6 +243,7 @@ private:
|
||||||
bool m_libdcLog;
|
bool m_libdcLog;
|
||||||
bool m_developer;
|
bool m_developer;
|
||||||
bool m_btEnabled;
|
bool m_btEnabled;
|
||||||
|
void updateAllGlobalLists();
|
||||||
|
|
||||||
#if defined(Q_OS_ANDROID)
|
#if defined(Q_OS_ANDROID)
|
||||||
QString appLogFileName;
|
QString appLogFileName;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue