[gnome-maps] sidebar: Insert transit options panel before first use
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] sidebar: Insert transit options panel before first use
- Date: Thu, 14 Sep 2017 19:48:57 +0000 (UTC)
commit 0e55b6091eba320bd39dcd1457110669ef44874b
Author: Marcus Lundblad <ml update uu se>
Date: Thu Sep 14 21:35:53 2017 +0200
sidebar: Insert transit options panel before first use
Avoid a warning on startup.
https://bugzilla.gnome.org/show_bug.cgi?id=787693
src/sidebar.js | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/sidebar.js b/src/sidebar.js
index 3c811fc..3fa18f0 100644
--- a/src/sidebar.js
+++ b/src/sidebar.js
@@ -83,6 +83,9 @@ const Sidebar = new Lang.Class({
*/
this._transitOptionsPanel =
new TransitOptionsPanel.TransitOptionsPanel({ visible: true });
+ this._transitHeader.add_named(this._transitOptionsPanel, 'options');
+ this._transitHeader.add_named(this._transitItineraryHeader,
+ 'itinerary-header');
this._initTransportationToggles(this._modePedestrianToggle,
this._modeBikeToggle,
this._modeCarToggle,
@@ -101,10 +104,6 @@ const Sidebar = new Lang.Class({
*/
if (!Application.routingDelegator.openTripPlanner.enabled)
this._modeTransitToggle.destroy();
-
- this._transitHeader.add_named(this._transitOptionsPanel, 'options');
- this._transitHeader.add_named(this._transitItineraryHeader,
- 'itinerary-header');
},
_initTransportationToggles: function(pedestrian, bike, car, transit) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]