Fix the logic of toggleable buttons

This commit is contained in:
Username404-59 2021-05-01 19:31:15 +02:00
parent b3201bfa3c
commit ee163fe312
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -41,8 +41,8 @@ class ClickButton(
if (it) {
if (!toggled) lightUp() else lightDown()
if ((kind == Type.TOGGLE)) {
if (toggled) execAction()
toggled = !toggled
if (toggled) execAction()
}
}
}