diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2022-12-05 22:32:32 +0100 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2022-12-05 22:32:32 +0100 |
commit | c8efc8c9901b44e4dbfb0560ca06c320776284dc (patch) | |
tree | c704c9d5e720239420b4be16dbe6e459995b9893 | |
parent | acaabcc68f2d11d81192700cee896ff8c99ae4af (diff) | |
download | gnome-maps-wip/mlundblad/show-layers-listbox.tar.gz |
layersPopover: Show/hide both the layers section box and list boxwip/mlundblad/show-layers-listbox
Otherwise the list box will not show if the section box was previously
shown and then hidden again.
-rw-r--r-- | src/layersPopover.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/layersPopover.js b/src/layersPopover.js index 905d90d6..8dbbf88c 100644 --- a/src/layersPopover.js +++ b/src/layersPopover.js @@ -79,6 +79,7 @@ export class LayersPopover extends Gtk.PopoverMenu { this._layersSectionBox.visible = this._mapView.shapeLayerStore.n_items > 0; this._mapView.shapeLayerStore.connect('items-changed', (model) => { this._layersSectionBox.visible = model.n_items > 0; + this._layersListBox.visible = model.n_items > 0; }); // for now let's disable the map type swithery, as we only have street |