Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Hide Load Image buttons #113

Open
kidyi opened this issue Jun 3, 2016 · 1 comment
Open

Hide Load Image buttons #113

kidyi opened this issue Jun 3, 2016 · 1 comment

Comments

@kidyi
Copy link

kidyi commented Jun 3, 2016

Hi,

Is it possible to hide or disable the "Load Image to Background" and "Load Image to Foreground" buttons on the tool bar?

@jeffvfren
Copy link

Hi,

Since the "Load image...“ function is bundled with wPaint.menu.main.file.min.js
Suggest do not include the js file. If you do so, the "save" button will also be removed.

You will need to manually add "save" button back:

        $.extend($.fn.wPaint.menus.main.items, {
            save: {
                img: 'plugins/file/img/icons-menu-main-file.png',
                icon: 'generic',
                title: 'Save',
                index: 0,
                callback: function () {
                    this.options.saveImg.apply(this, [this.getImage()]);
                }
            }
        });

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants