FileManager: Handle the FlushSettings event (#12425)

It's used on Android when we're murdered by the task switcher, and when doing an OTA update.

Fix #12124
This commit is contained in:
NiLuJe
2024-08-29 11:28:16 +02:00
committed by GitHub
parent 5fc5386e87
commit 7e52c15de2

View File

@@ -761,6 +761,11 @@ function FileManager:onClose()
return true
end
function FileManager:onFlushSettings()
self:handleEvent(Event:new("SaveSettings"))
G_reader_settings:flush()
end
function FileManager:onCloseWidget()
if FileManager.instance == self then
logger.dbg("Tearing down FileManager", tostring(self))