Hey,
even when "none" is disabled, the state gets triggert, which results in false output, when not testing for the current State.
Greetz,
Luzifer
[17.69] on_gui_switch_state_changed
- LuziferSenpai
- Filter Inserter
- Posts: 373
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: [17.69] on_gui_switch_state_changed
Thanks for the report however I have no idea what you mean.
If you want to get ahold of me I'm almost always on Discord.
- LuziferSenpai
- Filter Inserter
- Posts: 373
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: [17.69] on_gui_switch_state_changed
What I mean is:
You have the GuiElement Switch and its not a 3times Switch, its only a 2 times switch, so from left to right, not left to middle to right.
And then you have the Event and print something or log it and it shows that it gets 2times triggers when you go from left to right or viceversa.
You have the GuiElement Switch and its not a 3times Switch, its only a 2 times switch, so from left to right, not left to middle to right.
And then you have the Event and print something or log it and it shows that it gets 2times triggers when you go from left to right or viceversa.
- LuziferSenpai
- Filter Inserter
- Posts: 373
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: [17.69] on_gui_switch_state_changed
Here is the Modification which has this Problem:
Re: [17.69] on_gui_switch_state_changed
I can confirm this, for switches with allow_none_state=false, it will fire the on_gui_switch_state_changed event twice when the switch is clicked once, which is probably not intended that way.
Re: [17.69] on_gui_switch_state_changed
Can you provide a code snippet/console command that will demonstrate the issue
Re: [17.69] on_gui_switch_state_changed
Thanks for the report. It's now fixed for the next version of 0.17.
If you want to get ahold of me I'm almost always on Discord.