[fix] Save document settings before activating USBMS (#6713)

As things were, when I activated USBMS, any bookmarks recently added and not yet stored in the sidecar file would be lost after returning to the reader. These changes fix that.
reviewable/pr6722/r1
smartscripts-nl 4 years ago committed by GitHub
parent ef8d2d0d6e
commit 9a9f6f5d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,11 +58,15 @@ function MassStorage:start(never_ask)
text = _("Share storage via USB?"),
ok_text = _("Share"),
ok_callback = function()
-- save settings before activating USBMS:
UIManager:flushSettings()
UIManager:quit()
UIManager._exit_code = 86
end,
})
else
-- save settings before activating USBMS:
UIManager:flushSettings()
UIManager:quit()
UIManager._exit_code = 86
end

Loading…
Cancel
Save