Frans de Jonge 8 years ago committed by Qingping Hou
parent 359c1ae265
commit 4e2836187b

@ -161,7 +161,7 @@ function DoubleKeyValueItem:init()
end end
function DoubleKeyValueItem:onTap() function DoubleKeyValueItem:onTap()
local info = InfoMessage:new{text = _("Please wait...")} local info = InfoMessage:new{text = _("Please wait")}
UIManager:show(info) UIManager:show(info)
UIManager:forceRePaint() UIManager:forceRePaint()
self.callback() self.callback()
@ -328,7 +328,7 @@ function DoubleKeyValuePage:onSwipe(arg, ges_ev)
local new_page = math.min(self.show_page + 1, self.pages) local new_page = math.min(self.show_page + 1, self.pages)
if (new_page * self.items_per_page > #self.kv_pairs) and (self.max_loaded_pages < new_page) if (new_page * self.items_per_page > #self.kv_pairs) and (self.max_loaded_pages < new_page)
and #self.kv_pairs < self.total_res then and #self.kv_pairs < self.total_res then
local info = InfoMessage:new{text = _("Please wait...")} local info = InfoMessage:new{text = _("Please wait")}
UIManager:show(info) UIManager:show(info)
UIManager:forceRePaint() UIManager:forceRePaint()
self:nextPage() self:nextPage()

@ -81,7 +81,7 @@ function Goodreads:updateSettings()
"3. Your key and secret key will now be available on https://www.goodreads.com/api/keys\n" .. "3. Your key and secret key will now be available on https://www.goodreads.com/api/keys\n" ..
"4. Enter your generated key and your secret key in the settings dialog (Login to Goodreads window)" "4. Enter your generated key and your secret key in the settings dialog (Login to Goodreads window)"
if self.goodreads_key == "" then if self.goodreads_key == "" then
hint_top = _("Goodreads Key Not Set") hint_top = _("Goodreads key left empty")
text_top = "" text_top = ""
else else
hint_top = "" hint_top = ""
@ -89,7 +89,7 @@ function Goodreads:updateSettings()
end end
if self.goodreads_secret == "" then if self.goodreads_secret == "" then
hint_bottom = _("Goodreads Secret Key Not Set (optional)") hint_bottom = _("Goodreads secret left empty (optional)")
text_bottom = "" text_bottom = ""
else else
hint_bottom = "" hint_bottom = ""
@ -194,7 +194,7 @@ function Goodreads:search(search_type)
callback = function() callback = function()
text_input = search_input:getInputText() text_input = search_input:getInputText()
if text_input ~= nil and text_input ~= "" then if text_input ~= nil and text_input ~= "" then
info = InfoMessage:new{text = _("Please wait..."), timeout = 0.0} info = InfoMessage:new{text = _("Please wait"), timeout = 0.0}
UIManager:show(info) UIManager:show(info)
UIManager:nextTick(function() UIManager:nextTick(function()
result = DoubleKeyValuePage:new{ result = DoubleKeyValuePage:new{

Loading…
Cancel
Save