[Libreoffice-commits] online.git: loleaflet/src
Tamás Zolnai (via logerrit)
logerrit at kemper.freedesktop.org
Tue Dec 3 11:34:24 UTC 2019
loleaflet/src/core/LOUtil.js | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit f4d5e8e4805d567f9e029bd9777984266fdb6189
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Tue Dec 3 12:04:31 2019 +0100
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Tue Dec 3 12:34:06 2019 +0100
Context menus: Disable icon for menu items with command param.
It's the spelling context menu which have that so far.
For example
".uno:SpellCheckApplySuggestion?ApplyRule:string=Spelling_worldliness"
where worldliness is generated dynamically.
Change-Id: Id54b9053eb53fc435b501a05bf519e15e4eba37c
Reviewed-on: https://gerrit.libreoffice.org/84324
Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai at collabora.com>
diff --git a/loleaflet/src/core/LOUtil.js b/loleaflet/src/core/LOUtil.js
index 0172c1058..3abac316b 100644
--- a/loleaflet/src/core/LOUtil.js
+++ b/loleaflet/src/core/LOUtil.js
@@ -105,6 +105,8 @@ L.LOUtil = {
var res = !this.commandWithoutIcon.find(function (el) {
return el.startsWith(commandName);
});
+ if (commandName.indexOf('?')!== -1)
+ return false;
return res;
}
};
More information about the Libreoffice-commits
mailing list