remove autofrontlight + backgroundrunner (#12809)
* remove autofrontlight * remove background-runner thirparty plugins that rely on the backgroundrunner no longer work.
This commit is contained in:
1 parent
89fd0061fb
commit
162685df50
14 files changed
+3
-1286
No files matched your search
@@ -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