loleaflet/src/core/LOUtil.js |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit f4d5e8e4805d567f9e029bd9777984266fdb6189
Author:     Tamás Zolnai <tamas.zol...@collabora.com>
AuthorDate: Tue Dec 3 12:04:31 2019 +0100
Commit:     Tamás Zolnai <tamas.zol...@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.zol...@collabora.com>
    Tested-by: Tamás Zolnai <tamas.zol...@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;
        }
 };
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to