No frontlight devices - disable irrelevant plugins#12766
Conversation
_meta.lua only checks for just warm light presence...
|
AutoWarmth plugin's |
|
Please move For example koreader/plugins/docsettingtweak.koplugin/main.lua Lines 1 to 5 in 93f2fa6 |
|
Great point! Thank you, I'll try soon |
| if not Device:hasFrontlight() then | ||
| return { disabled = true, } | ||
| end |
| if not Device:hasFrontlight() then | ||
| return { disabled = true, } | ||
| end | ||
|
|
There was a problem hiding this comment.
this one seems unnecessary, there is the not (Device:isKindle() and Device:hasLightSensor()) check just above it and every kindle with light sensor already has a front light... and is being deprecated and removed soon nonetheless.
There was a problem hiding this comment.
Do you know why I still see it in the list?
Or, am I confusing it thinking that "disabled" should remove it from the list?
|
@Frenzie |
|
OK, think I am confusing it indeed. So, I need to figure out how to skip adding them to the table of plugin list. |
|
Oh, that's weird. I guess I found a culprit! It is... (please don't beat me up xD) ... my transferred settings from Kindle Scribe! The way I figured it out is that I enabled After restart, KOReader kicked So the "list" must have been fetched as is from Can we fix that too? |
|
@Frenzie I found out why it didn't "work" for me, see my post above.
This can wait until another PR, if anyone knows a solution. Thank you! |
Doesn't really belong in this one regardless. :-) |
English is not even my second language :D Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
|
I synced this branch to prepare for merging. |

Closes #12764
However, adding these to K4NT did not make them disappear from the list.
Hence, draft PR.
To be continued...
This change is