[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:
1 parent
ab4d7ee4e1
commit
837e9d85cb
1 file changed
+7
-7
@@ -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