From c8efc8c9901b44e4dbfb0560ca06c320776284dc Mon Sep 17 00:00:00 2001 From: Marcus Lundblad Date: Mon, 5 Dec 2022 22:32:32 +0100 Subject: [PATCH] layersPopover: Show/hide both the layers section box and list box Otherwise the list box will not show if the section box was previously shown and then hidden again. --- src/layersPopover.js | 1 + 1 file changed, 1 insertion(+) 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 -- GitLab