Cleanup downloadmgr titles (#4222)

This commit is contained in:
Robert
2018-09-13 13:20:09 +02:00
committed by poire-z
parent c8d19b310c
commit a706fde2d7
6 changed files with 2 additions and 14 deletions

View File

@@ -369,11 +369,7 @@ function NewsDownloader:removeNewsButKeepFeedConfig()
end
function NewsDownloader:setCustomDownloadDirectory()
UIManager:show(InfoMessage:new{
text = _("To select a folder press down and hold it for 1 second.")
})
require("ui/downloadmgr"):new{
title = _("Choose download directory"),
onConfirm = function(path)
logger.dbg("NewsDownloader: set download directory to: ", path)
local news_downloader_settings = LuaSettings:open(("%s/%s"):format(DataStorage:getSettingsDir(), news_downloader_config_file))

View File

@@ -192,11 +192,7 @@ function Send2Ebook:removeReadActicles()
end
function Send2Ebook:setCustomDownloadDirectory()
UIManager:show(InfoMessage:new{
text = _("To select a folder press down and hold it for 1 second.")
})
require("ui/downloadmgr"):new{
title = _("Choose download directory"),
onConfirm = function(path)
logger.dbg("Send2Ebook: set download directory to: ", path)
send2ebook_settings:saveSetting(config_key_custom_dl_dir, ("%s/"):format(path))

View File

@@ -229,7 +229,6 @@ function ZSync:subscribe()
self.received = {}
local zsync = self
require("ui/downloadmgr"):new{
title = _("Choose inbox by long-pressing"),
show_hidden = G_reader_settings:readSetting("show_hidden"),
onConfirm = function(inbox)
G_reader_settings:saveSetting("inbox_dir", inbox)