vcl/jsdialog/executor.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+)
New commits: commit 36c6981f81fd929ad355c35bbf69b35c77720efc Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Tue Jun 28 13:11:42 2022 +0200 Commit: Gökay ŞATIR <gokaysa...@collabora.com> CommitDate: Mon Jul 4 16:10:38 2022 +0200 jsdialog: add open/close instead of toggle menu from dropdown it will make us sure we don't reopen popup when we just toggle so we will be in sync Change-Id: I014e824a29d91d5972a6840246bcd4c31d24ae48 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136571 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Gökay ŞATIR <gokaysa...@collabora.com> diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx index 8d3dd2d876d1..1b13cbeafe79 100644 --- a/vcl/jsdialog/executor.cxx +++ b/vcl/jsdialog/executor.cxx @@ -248,6 +248,18 @@ bool ExecuteAction(const std::string& nWindowId, const OString& rWidget, StringM pToolbar->set_menu_item_active(sId, !bIsActive); return true; } + else if (sAction == "closemenu") + { + OString sId = OUStringToOString(rData["data"], RTL_TEXTENCODING_ASCII_US); + pToolbar->set_menu_item_active(sId, false); + return true; + } + else if (sAction == "openmenu") + { + OString sId = OUStringToOString(rData["data"], RTL_TEXTENCODING_ASCII_US); + pToolbar->set_menu_item_active(sId, true); + return true; + } } } else if (sControlType == "edit")