fix setting Enabled using commands
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m10s

This commit is contained in:
Daniella / Tove 2024-06-13 14:40:57 +02:00
parent b7a4dc207d
commit 3a33dbf4cc
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -270,6 +270,10 @@ public abstract class Feature extends ToggleButton implements SetCommand {
}
public boolean setWithString(String setting, String value) {
if(setting.equals("Enabled") && !value.equalsIgnoreCase(String.valueOf(enabled))) {
toggle();
return true;
}
return handle.setWithString(setting, value);
}