07-02-2020, 12:46 AM
(07-01-2020, 09:11 PM)antiX-Dave Wrote: I was looking at the code but as I am not too familiar with C and the method of compiling, I am not really capable of making changes and submitting a merge request at this moment. Still trying to learn but finding it a bit more vague than python, php, perl and the like...
So perhaps a function request?
Maybe the app could have a g_signal_connect on the window for the delete and destroy events to run the enable_flashlight(False) function (which as best as I can tell is a toggle based on the button press being true or false) so that the flashlight is turned off before the application is closed?
I myself have never really dived into php and perl. Python is cool though, but sometimes I get confused by all the magic that happens in the background.
In C I feel there is no magic involved and I like being in total control (also allowing you to make stupid mistakes of course ;) ).
Anyway: In case you are interested, have a look at this MR.