mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
remove autofrontlight + backgroundrunner (#12809)
* remove autofrontlight * remove background-runner thirparty plugins that rely on the backgroundrunner no longer work.
This commit is contained in:
@@ -119,26 +119,3 @@ package.unloadAll = function()
|
||||
end
|
||||
return #pending
|
||||
end
|
||||
|
||||
local background_runner
|
||||
requireBackgroundRunner = function()
|
||||
require("pluginshare").stopBackgroundRunner = nil
|
||||
if background_runner == nil then
|
||||
local package_path = package.path
|
||||
package.path = "plugins/backgroundrunner.koplugin/?.lua;" .. package.path
|
||||
background_runner = dofile("plugins/backgroundrunner.koplugin/main.lua")
|
||||
package.path = package_path
|
||||
end
|
||||
return background_runner
|
||||
end
|
||||
|
||||
stopBackgroundRunner = function()
|
||||
background_runner = nil
|
||||
require("pluginshare").stopBackgroundRunner = true
|
||||
end
|
||||
|
||||
notifyBackgroundJobsUpdated = function()
|
||||
if background_runner then
|
||||
background_runner:onBackgroundJobsUpdated()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user