mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile-widgets: move distanceThreshold handling to qPref
Remove distanceThreshold from qmlprefs and use qPref instead update qml no user experience change Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c454f6954f
commit
baa828e900
4 changed files with 2 additions and 26 deletions
|
@ -406,7 +406,6 @@ void QMLManager::finishSetup()
|
|||
appendTextToLog(tr("no cloud credentials"));
|
||||
setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT);
|
||||
}
|
||||
QMLPrefs::instance()->setDistanceThreshold(qPrefLocationService::distance_threshold());
|
||||
QMLPrefs::instance()->setTimeThreshold(qPrefLocationService::time_threshold() / 60);
|
||||
}
|
||||
|
||||
|
@ -427,7 +426,6 @@ QMLManager *QMLManager::instance()
|
|||
void QMLManager::savePreferences()
|
||||
{
|
||||
qPrefLocationService::set_time_threshold(QMLPrefs::instance()->timeThreshold() * 60);
|
||||
qPrefLocationService::set_distance_threshold(QMLPrefs::instance()->distanceThreshold());
|
||||
}
|
||||
|
||||
#define CLOUDURL QString(prefs.cloud_base_url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue