diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-10-08 14:01:11 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-10-08 16:50:40 +0200 |
commit | 2d7d3cc936cb5b0a242ad7a5c714ebde03df574d (patch) | |
tree | 0a9dc0d9203368cb3725a22b753c8ca80e9660b5 /sfx2/source/sidebar/Deck.cxx | |
parent | 063702253e33734e2a867ae5145e05a3153b3c04 (diff) |
lok: only generate sidebar JSON for mobile views, for now.
Change-Id: I7a4b20cfc93ddd77752790a7c303f512a62afbb3
Reviewed-on: https://gerrit.libreoffice.org/80460
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sfx2/source/sidebar/Deck.cxx')
-rw-r--r-- | sfx2/source/sidebar/Deck.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index 5bc09fdfc2f5..d54b4cea5c67 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -196,7 +196,10 @@ void Deck::Resize() { Window::Resize(); - if (const vcl::ILibreOfficeKitNotifier* pNotifier = GetLOKNotifier()) + const vcl::ILibreOfficeKitNotifier *pNotifier; + if (comphelper::LibreOfficeKit::isActive() && + comphelper::LibreOfficeKit::isMobile(SfxLokHelper::getView()) && + (pNotifier = GetLOKNotifier())) { std::vector<vcl::LOKPayloadItem> aItems; aItems.emplace_back("type", "deck"); |