At the moment if the ACE3 progress bar for turning on/off generator or solar panel is cancelled, the setup is in an undefined state because some code like setting the on/off state is set although the action was cancelled.
By merging this pull request this issue is fixed. Now It's possible to cancel the progress bars. It's not a very elegant solution because we are switching from unscheduled to scheduled execution and therefore the handling of the return value is a problem. But I think the workaround is ok.
Another solution would be getting rid the progress bar at all. I don't think that the solar panel needs a progress bar. It could be turned on/off immediately. Also the generator doesn't need a interruptable stop/stop procedure. I think it's more like pressing a button. The start and stop sounds are only for immersion.
At the moment if the ACE3 progress bar for turning on/off generator or solar panel is cancelled, the setup is in an undefined state because some code like setting the on/off state is set although the action was cancelled.
By merging this pull request this issue is fixed. Now It's possible to cancel the progress bars. It's not a very elegant solution because we are switching from unscheduled to scheduled execution and therefore the handling of the return value is a problem. But I think the workaround is ok.
Another solution would be getting rid the progress bar at all. I don't think that the solar panel needs a progress bar. It could be turned on/off immediately. Also the generator doesn't need a interruptable stop/stop procedure. I think it's more like pressing a button. The start and stop sounds are only for immersion.