Quote:
How do I go about turning this into a dynamic menu item for now its two
|
You need a way of knowing if dark mode is on or not, that's what the success/failure chains key off of. For the FTP toggle, it tries to stop the FTP server. If it is successful in stopping it, that means it was on, and now it's off, so I change the menu item to "Start FTP". If it fails, that means it wasn't on, so I start the FTP server, and then change the menu item to "Stop FTP"
Find a way to check the setting, and that will let you change the menu. You can probably do it by grepping the "Kobo eReader.conf" file for a string, not sure what the string is when dark mode is on, but you can easily check that.