poll before updateEnabled

This commit is contained in:
Daniella / Tove 2024-06-02 02:08:35 +02:00
parent 602d17bd8c
commit fad5d9ceea
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -267,8 +267,8 @@ public abstract class Feature extends ToggleButton implements SetCommand {
@KeyBound("Toggle") @KeyBound("Toggle")
public void toggle() { public void toggle() {
enabled = !enabled; enabled = !enabled;
updateEnabled();
handle.poll("Enabled"); handle.poll("Enabled");
updateEnabled();
} }
public boolean setWithString(String setting, String value) { public boolean setWithString(String setting, String value) {