fix freecam breaking disabling

This commit is contained in:
Daniella / Tove 2024-05-25 23:23:30 +02:00
parent cbf231eb74
commit de1b0cb1c4

View file

@ -157,7 +157,6 @@ public abstract class Feature extends ToggleButton implements SetCommand {
}
}
if(f.getType().isEnum()) {
//noinspection unchecked
subComponents.add(new EnumButton((Class<? extends Enum<?>>) f.getType(), config.value(), settings, config.value()).gate(gate));
}
}
@ -210,6 +209,8 @@ public abstract class Feature extends ToggleButton implements SetCommand {
}
public void setEnabledSilent(boolean enable) {
if(enabled == enable)
return;
enabled = enable;
updateEnabled();
}