mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 03:52:11 +08:00
ui: reset nav status on offroad transition (#28897)
* need to do this * actually better to clear it on offroad transition, then onroad transition will be fine old-commit-hash: c158537df69c21dc0f134774cdd02b48dfbadeeb
This commit is contained in:
@@ -357,6 +357,7 @@ void MapWindow::pinchTriggered(QPinchGesture *gesture) {
|
||||
void MapWindow::offroadTransition(bool offroad) {
|
||||
if (offroad) {
|
||||
clearRoute();
|
||||
uiState()->scene.navigate_on_openpilot = false;
|
||||
} else {
|
||||
auto dest = coordinate_from_param("NavDestination");
|
||||
emit requestVisible(dest.has_value());
|
||||
|
||||
Reference in New Issue
Block a user