From a4e3d89034a6c9a1e9d3b2d9eb7ffb59af5141e0 Mon Sep 17 00:00:00 2001 From: LeJeu <64744459+le-jeu@users.noreply.github.com> Date: Thu, 28 Sep 2023 21:49:01 +0200 Subject: [PATCH] fix: reset QD picker color on start --- src/code/buttons/quickdrawButton.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/code/buttons/quickdrawButton.ts b/src/code/buttons/quickdrawButton.ts index 08342724..40df9636 100644 --- a/src/code/buttons/quickdrawButton.ts +++ b/src/code/buttons/quickdrawButton.ts @@ -37,7 +37,10 @@ class QuickdrawButton extends WButton { title: this.title, container: container, className: "wasabee-toolbar-quickdraw", - callback: this.handler.enable, + callback: () => { + this.picker.value = "#000000"; + this.handler.enable(); + }, context: this.handler, });