Toggle Module - switch state without firing events

As of the new hotfix, turning a toggle module on while it’s already on won’t trigger the “switch on” event (and same for turning it off). This is good for the most part, but it makes it harder to make a consistent state-agnostic reset event for a system that uses toggles, as you can’t be sure whether the events tied to the toggle will fire or not. This problem would be easily solved if you could just set a toggle module on/off without firing its events, as you could reset the state of the objects the module is hooked up to without worrying about whether or not the module will change their state.

Perhaps a SetOffSilent, SetOnSilent would be fitting.

3 Likes