WerWolv / ovl-sysmodules

A sysmodule selector for Tesla
GNU General Public License v2.0
248 stars 35 forks source link

Prevent autostart when toggling on #23

Open Localhorst86 opened 1 year ago

Localhorst86 commented 1 year ago

Previously, when you had a "dynamic" sysmodule disabled for autostart and toggled it on during runtime using the a button, autostart would remain disabled. I.e., the module was only enabled until the next reboot or until manually toggled off.

I found this very usefull, particularly for the sys-ftpd-light overlay.

with the latest release, this behaviour seems tro have changed. Toggling a module on at runtime, autmatically toggles it on to auto start.

Is this intended behaviour? Is there any way to get the old behaviour back (toggling on a sysmodule will not toggle auto start)?

0ver-flow commented 1 year ago

Seems as though removing the following: https://github.com/WerWolv/ovl-sysmodules/blob/master/source/gui_main.cpp#L87C21-L88C65 https://github.com/WerWolv/ovl-sysmodules/blob/master/source/gui_main.cpp#L99C21-L100C87 and compiling has fixed the issue. Not sure if this is a patchwork fix or actual fix.