mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile: honour location service time threshold
Independ of the settings, the threshold to reset the GPS data was hard coded to 5 minutes. Now, honour the entered (and updated during a session) time to refresh the GPS data in the location service. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
adb4b66a05
commit
fd03621a4b
3 changed files with 11 additions and 1 deletions
|
@ -1307,6 +1307,7 @@ int QMLManager::timeThreshold() const
|
|||
void QMLManager::setTimeThreshold(int time)
|
||||
{
|
||||
m_timeThreshold = time;
|
||||
locationProvider->setGpsTimeThreshold(m_timeThreshold * 60);
|
||||
emit timeThresholdChanged();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue