From ac0f18d5e8f463f79245d37043cc59c3a143f4b5 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Fri, 21 May 2021 16:45:29 +0200 Subject: jsdialog: sidebar: dump all panels Change-Id: Ifa547014f6857b0c1fbdce50cba745f1bee4e975 --- sfx2/source/sidebar/Deck.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index 5070d500038d..7a5b89139a08 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -144,9 +144,6 @@ void Deck::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) auto childrenNode = rJsonWriter.startArray("children"); for (auto &it : maPanels) { - if (it->IsLurking()) - continue; - // collapse the panel itself out auto xContent = it->GetContents(); if (!xContent) @@ -157,6 +154,7 @@ void Deck::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) rJsonWriter.put("type", "panel"); rJsonWriter.put("text", it->GetTitle()); rJsonWriter.put("enabled", true); + rJsonWriter.put("hidden", it->IsLurking()); { auto children2Node = rJsonWriter.startArray("children"); -- cgit