gpstrek - Autosearch after loading a route

pull/2768/head
Martin Boonk 2023-06-10 18:30:07 +02:00
parent 5433953ca9
commit f7e44da9e2
1 changed files with 1 additions and 0 deletions

View File

@ -1083,6 +1083,7 @@ let handleLoading = function(c){
E.showMenu();
let s = WIDGETS.gpstrek.getState();
s.route = loadRouteData(c, showProgress);
if(SETTINGS.autosearch) setClosestWaypoint(s.route, 0, showProgress);
s.waypoint = null;
removeMenu();
};