mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Allow running shell scripts from the FileManager/Favorites (#5804)
* Allow running Shell/Python scripts from the FM * Show an InfoMessage before/after running the script Since we're blocking the UI ;). * Allow running scripts from the favorites menu, too.
This commit is contained in:
@@ -67,7 +67,7 @@ function SysfsLight:setNaturalBrightness(brightness, warmth)
|
||||
|
||||
-- Newer devices use a mixer instead of writting values per color.
|
||||
if self.frontlight_mixer then
|
||||
-- Honor the device's scale, which may not be [0...100] (f.g., it's [0...10] on the Forma) ;).
|
||||
-- Honor the device's scale, which may not be [0...100] (e.g., it's [0...10] on the Forma) ;).
|
||||
warmth = math.floor(warmth / self.nl_max)
|
||||
if set_brightness then
|
||||
-- Prefer the ioctl, as it's much lower latency.
|
||||
|
||||
Reference in New Issue
Block a user