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:
1 parent
9ab6224963
commit
d08e22ec2e
11 files changed
+702
-53
No files matched your search
@@ -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