fix exe dropper ext

master
JFH 2021-01-03 17:34:46 +01:00
parent 5c4e2eb46c
commit d50aad1e0d
1 changed files with 6 additions and 16 deletions

View File

@ -71,29 +71,19 @@ export default {
}
}
const buttons = [
{
id: 'tool_eyedropper',
type: 'mode',
events: {
click () {
svgCanvas.setMode('eyedropper');
}
}
const events = {
id: 'tool_eyedropper',
click () {
svgCanvas.setMode('eyedropper');
}
];
};
return {
name: strings.name,
newUI: true,
buttons: strings.buttons.map((button, i) => {
return Object.assign(buttons[i], button);
}),
events,
// if we have selected an element, grab its paint and enable the eye dropper button
selectedChanged: getStyle,
elementChanged: getStyle,
mouseDown (opts) {
const mode = svgCanvas.getMode();
if (mode === 'eyedropper') {