mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add simple sync service as a plugin
The 'KOSync' plugin will synchronize furthest reading progress across different koreader devices after users registering their devices. The synchronizing service is open-sourced as the project [koreader/koreader-sync-server](https://github.com/koreader/koreader-sync-server).
This commit is contained in:
@@ -368,7 +368,8 @@ function ReaderUI:closeDocument()
|
||||
self.document = nil
|
||||
end
|
||||
|
||||
function ReaderUI:onCloseDocument()
|
||||
function ReaderUI:notifyCloseDocument()
|
||||
self:handleEvent(Event:new("CloseDocument"))
|
||||
if self.document:isEdited() then
|
||||
UIManager:show(ConfirmBox:new{
|
||||
text = _("Do you want to save this document?"),
|
||||
@@ -392,7 +393,7 @@ function ReaderUI:onClose()
|
||||
self:saveSettings()
|
||||
if self.document ~= nil then
|
||||
DEBUG("closing document")
|
||||
self:onCloseDocument()
|
||||
self:notifyCloseDocument()
|
||||
end
|
||||
UIManager:close(self.dialog, "full")
|
||||
-- serialize last used items for later launch
|
||||
|
||||
Reference in New Issue
Block a user