mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Kobo Frontlight Tweaks
Now the frontlight remains unchanged from Nickel to koreader and vice versa. Also ffi/kobolight.lua has been changed to allow for usage of the toggle button in the filemanager.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!./koreader-base
|
||||
|
||||
require "defaults"
|
||||
package.path = "./frontend/?.lua;./?.lua"
|
||||
package.cpath = "?.so;/usr/lib/lua/?.so"
|
||||
package.path = "?.lua;common/?.lua;frontend/?.lua"
|
||||
package.cpath = "?.so;common/?.so;/usr/lib/lua/?.so"
|
||||
|
||||
local DocSettings = require("docsettings")
|
||||
local _ = require("gettext")
|
||||
@@ -184,7 +184,8 @@ do
|
||||
if powerd and powerd.restore_settings then
|
||||
local intensity = G_reader_settings:readSetting("frontlight_intensity")
|
||||
intensity = intensity or powerd.flIntensity
|
||||
powerd:setIntensity(intensity)
|
||||
powerd:setIntensityWithoutHW(intensity)
|
||||
-- powerd:setIntensity(intensity)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user