mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-22 22:42:05 +08:00
ui/map: check NavDestination only if navInstruction is invalid (#29331)
* check NavDestination only if navInstruction is invalid * Update selfdrive/ui/qt/maps/map.cc Co-authored-by: Shane Smiskol <shane@smiskol.com> --------- Co-authored-by: Shane Smiskol <shane@smiskol.com>
This commit is contained in:
@@ -213,8 +213,7 @@ void MapWindow::updateState(const UIState &s) {
|
||||
// - API exception/no internet
|
||||
// - route response is empty
|
||||
// - any time navd is waiting for recompute_countdown
|
||||
auto dest = coordinate_from_param("NavDestination");
|
||||
routing_problem = !sm.valid("navInstruction") && dest.has_value();
|
||||
routing_problem = !sm.valid("navInstruction") && coordinate_from_param("NavDestination").has_value();
|
||||
|
||||
if (sm.valid("navInstruction")) {
|
||||
auto i = sm["navInstruction"].getNavInstruction();
|
||||
|
||||
Reference in New Issue
Block a user