consistent update left panel when clicking on left button

This commit is contained in:
JFH
2021-08-21 18:19:29 +02:00
parent 3976bd7072
commit 4219a7f7b9
4 changed files with 12 additions and 4 deletions

View File

@@ -51,7 +51,9 @@ export default {
`;
canv.insertChildAtIndex($id('tools_left'), buttonTemplate, 9);
$id('tool_shapelib').addEventListener("click", () => {
canv.setMode(modeId);
if (this.leftPanel.updateLeftPanel("tool_shapelib")) {
canv.setMode(modeId);
}
});
}
},