Make pasting lock the toolbar

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>

Former-commit-id: 4b236153eb7b61af5d7ec8703069709aeea684a3
This commit is contained in:
Victor Seiji Hariki 2022-11-25 00:55:16 -03:00
parent ded2e448bb
commit 97f3a54644

View file

@ -18,9 +18,9 @@ const stampTool = () =>
opt.image,
opt.temporary === undefined ? true : opt.temporary
);
console.debug(state.selected);
state.ctxmenu.uploadButton.disabled = true;
state.back = opt.back || null;
toolbar.lock();
} else if (opt) {
throw Error(
"Pasting from other tools must be in format {image, name?, temporary?, back?}"