masterpage: don't open sidebar on master page switch

it should stay in current state

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I446ffaa7183cdb70e0a924c4ea042e280a72bb70
This commit is contained in:
Szymon Kłos 2022-09-19 16:58:46 +02:00 committed by Gökay ŞATIR
parent c441669d20
commit 90f5a08d9f

View file

@ -323,9 +323,8 @@ L.Map.include({
sendUnoCommand: function (command, json) {
if ((command.startsWith('.uno:Sidebar') && !command.startsWith('.uno:SidebarShow')) ||
command.startsWith('.uno:SlideMasterPage') || command.startsWith('.uno:SlideChangeWindow') ||
command.startsWith('.uno:CustomAnimation') || command.startsWith('.uno:MasterSlidesPanel') ||
command.startsWith('.uno:ModifyPage')) {
command.startsWith('.uno:SlideChangeWindow') || command.startsWith('.uno:CustomAnimation') ||
command.startsWith('.uno:MasterSlidesPanel') || command.startsWith('.uno:ModifyPage')) {
// sidebar control is present only in desktop/tablet case
if (this.sidebar) {