From 8a6583981655b931f433019e3d4f59148ba944ab Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sat, 1 May 2021 19:38:21 +0200 Subject: [PATCH] Always execute actions of toggleable buttons --- .../kotlin/fr/username404/snowygui/gui/elements/ClickButton.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickButton.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickButton.kt index 960c0ed..0893bc9 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickButton.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickButton.kt @@ -42,7 +42,7 @@ class ClickButton( if (!toggled) lightUp() else lightDown() if ((kind == Type.TOGGLE)) { toggled = !toggled - if (toggled) execAction() + execAction() } } }