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:
1 parent
5fc5386e87
commit
7e52c15de2
1 file changed
+5
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user