[gnome-maps] resrobot: Don't reset query points on failure



commit 620429822648ca098ee39b478a76b35ee6df40ec
Author: Marcus Lundblad <ml update uu se>
Date:   Wed Apr 1 20:16:14 2020 +0200

    resrobot: Don't reset query points on failure
    
    Allows the user to re-try the same query
    with a turn-by-turn mode.

 src/transitplugins/resrobot.js | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/src/transitplugins/resrobot.js b/src/transitplugins/resrobot.js
index 20493d42..39c1cb3b 100644
--- a/src/transitplugins/resrobot.js
+++ b/src/transitplugins/resrobot.js
@@ -303,13 +303,6 @@ var Resrobot = class Resrobot {
         return walkingItinerary;
     }
 
-    _reset() {
-        if (this._query.latest)
-            this._query.latest.place = null;
-        else
-            this._plan.reset();
-    }
-
     /* Indicate that no routes where found, either shows the "No route found"
      * message, or in case of loading additional (later/earlier) results,
      * indicate no such where found, so that the sidebar can disable the
@@ -319,7 +312,6 @@ var Resrobot = class Resrobot {
         if (this._extendPrevious) {
             this._plan.noMoreResults();
         } else {
-            this._reset();
             this._plan.noRouteFound();
         }
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]