remove autofrontlight + backgroundrunner (#12809)

* remove autofrontlight
* remove background-runner

thirparty plugins that rely on the backgroundrunner no longer work.
This commit is contained in:
Martín Fernández
2024-12-06 21:28:56 +01:00
committed by GitHub
parent 89fd0061fb
commit 162685df50
14 changed files with 3 additions and 1286 deletions

View File

@@ -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