diff options
-rw-r--r-- | qt-mobile/qmlmanager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index 7d50884ab..dd15f429d 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -54,6 +54,9 @@ QMLManager::QMLManager() : // create location manager service locationProvider = new GpsLocation(&appendTextToLogStandalone, this); set_git_update_cb(&gitProgressCB); + QSettings s; + if (s.contains("setLoadFromCloud") && s.value("setLoadFromCloud").toInt() == 1) + setLoadFromCloud(true); } void QMLManager::finishSetup() @@ -646,6 +649,8 @@ bool QMLManager::loadFromCloud() const void QMLManager::setLoadFromCloud(bool done) { + QSettings s; + s.setValue("loadFromCloud", 1); m_loadFromCloud = done; emit loadFromCloudChanged(); } |