Cleanup downloadmgr titles (#4222)

pull/4232/head
Robert 6 years ago committed by poire-z
parent c8d19b310c
commit a706fde2d7

@ -206,10 +206,9 @@ function CloudStorage:cloudFile(item, path)
},
{
{
text = _("Choose download directory by long-pressing"),
text = _("Choose download directory"),
callback = function()
require("ui/downloadmgr"):new{
title = _("Choose download directory"),
show_hidden = G_reader_settings:readSetting("show_hidden"),
onConfirm = function(path_download)
self.cs_settings:saveSetting("download_dir", path_download)

@ -52,11 +52,10 @@ function Screensaver:chooseFolder()
local buttons = {}
table.insert(buttons, {
{
text = _("Choose screensaver directory by long-pressing"),
text = _("Choose screensaver directory"),
callback = function()
UIManager:close(self.choose_dialog)
require("ui/downloadmgr"):new{
title = _("Choose screensaver directory"),
onConfirm = function(path)
logger.dbg("set screensaver directory to", path)
G_reader_settings:saveSetting("screensaver_dir", path)

@ -587,7 +587,6 @@ function OPDSBrowser:showDownloads(item)
text = _("Select another directory"),
callback = function()
require("ui/downloadmgr"):new{
title = _("Long-press to select directory"),
onConfirm = function(path)
logger.dbg("set download directory to", path)
G_reader_settings:saveSetting("download_dir", path)

@ -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))

@ -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))

@ -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)

Loading…
Cancel
Save