[fix] plugins/send2ebook: crash on setting download dir (#4944)

Also fix weird indentation.

Reported on the forum: https://www.mobileread.com/forums/showthread.php?p=3833021#post3833021
pull/4946/head
Frans de Jonge 5 years ago committed by GitHub
parent ab4d7ee4e1
commit 837e9d85cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -193,14 +193,14 @@ end
function Send2Ebook:setCustomDownloadDirectory()
require("ui/downloadmgr"):new{
onConfirm = function(path)
logger.dbg("Send2Ebook: set download directory to: ", path)
send2ebook_settings:saveSetting(config_key_custom_dl_dir, ("%s/"):format(path))
send2ebook_settings:flush()
initialized = false
self:lazyInitialization()
end,
onConfirm = function(path)
logger.dbg("Send2Ebook: set download directory to: ", path)
send2ebook_settings:saveSetting(config_key_custom_dl_dir, ("%s/"):format(path))
send2ebook_settings:flush()
initialized = false
Send2Ebook:lazyInitialization()
end,
}:chooseDir()
end

Loading…
Cancel
Save