sfx2/source/appl/appserv.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 5f67ef053f7543d20d80669a4b3eba15f44fbeb4
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Mon Jul 26 11:59:39 2021 +0200
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Thu Oct 21 19:22:05 2021 +0200

    online: keep sidebar opened
    
    when we switch mode in online keep sidebar in opened
    state. For example when switching from notebookbar
    to classic mode - sidebar is set to "Tabs" what makes
    sidebar hidden in online. The same happened when
    crash occured.
    
    Change-Id: I5d0d1dba4c89b5e380a0bf717fabf4337016894c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119496
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    (cherry picked from commit 2d9c05d615c2bf8dc494f4eec1213d27c74d24ef)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123975

diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 47fb7a5f92c7..4f9af60cb981 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -955,6 +955,9 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
                     // Sidebar
                     pViewFrame->ShowChildWindow( SID_SIDEBAR );
 
+                    if (comphelper::LibreOfficeKit::isActive())
+                        aSidebarMode = "Opened";
+
                     sfx2::sidebar::SidebarController* pSidebar =
                             
sfx2::sidebar::SidebarController::GetSidebarControllerForFrame( xFrame );
                     if ( pSidebar )

Reply via email to