diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2022-06-28 13:11:42 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2022-07-26 10:27:25 +0200 |
commit | c2a52693770c7db4741dedfdb7222b93f045b101 (patch) | |
tree | 4ee32253e0ce0b8c201cd7153af8471e96998f28 /vcl/jsdialog/executor.cxx | |
parent | 61e4f8503c89e0933b294304320e371804b077c9 (diff) |
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/+/136570
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Rashesh Padia <rashesh.padia@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137449
Tested-by: Jenkins
Diffstat (limited to 'vcl/jsdialog/executor.cxx')
-rw-r--r-- | vcl/jsdialog/executor.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx index 24a5f9ba596d..0f8a2722bdac 100644 --- a/vcl/jsdialog/executor.cxx +++ b/vcl/jsdialog/executor.cxx @@ -319,6 +319,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") |