loleaflet/src/core/LOUtil.js | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit f4d5e8e4805d567f9e029bd9777984266fdb6189
Author: Tamás Zolnai <[email protected]>
AuthorDate: Tue Dec 3 12:04:31 2019 +0100
Commit: Tamás Zolnai <[email protected]>
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 <[email protected]>
Tested-by: Tamás Zolnai <[email protected]>
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;
}
};
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits