mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[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
This commit is contained in:
@@ -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()
|
||||
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,
|
||||
initialized = false
|
||||
Send2Ebook:lazyInitialization()
|
||||
end,
|
||||
}:chooseDir()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user