forked from organicmaps/organicmaps
[drape] hide position in invalidate function only if current mode not HasPosition
This commit is contained in:
parent
a78213aa24
commit
3ff0ce01be
1 changed files with 4 additions and 1 deletions
|
@ -462,11 +462,14 @@ void State::InvalidatePosition()
|
|||
SetModeInfo(ChangeMode(m_modeInfo, UnknownPosition));
|
||||
SetModeInfo(ChangeMode(m_modeInfo, PendingPosition));
|
||||
m_afterPendingMode = currentMode;
|
||||
setIsVisible(true);
|
||||
}
|
||||
else if (currentMode == UnknownPosition)
|
||||
{
|
||||
m_afterPendingMode = Follow;
|
||||
setIsVisible(false);
|
||||
}
|
||||
|
||||
setIsVisible(false);
|
||||
invalidate();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue