GNOME Bugzilla – Bug 783009
Don't reload transit route result when not changing the mode parameters
Last modified: 2017-05-30 20:55:45 UTC
Currently, when the user opens the popover to select which modes of transit to use after dismissing it we always re-create the options object and reload the query. This means that just clicking on the button and making no changes will reload the result list, which can annoying, especially if the user has loaded more results, as these will be lost. Maybe we should not update if no change was made?
Created attachment 352537 [details] [review] transitOptions: Add function to test two objects for equality Add a function to test if two TransitOption objects are equal. Either if both are set to accept any type, or if they contain the same set of types, consider them equal, otherwise not.
Created attachment 352538 [details] [review] transitOptionsPanel: Don't update when options are not changed Don't update the route query when opening the options popover, but not changing any preferred modes of transit.
Attachment 352537 [details] pushed as 2357178 - transitOptions: Add function to test two objects for equality Attachment 352538 [details] pushed as dbab2f6 - transitOptionsPanel: Don't update when options are not changed