Update filemanagersearch.lua

pull/784/head
WS64 10 years ago
parent 9830119405
commit a0818bb1ab

@ -94,14 +94,14 @@ function Search:init()
end end
if self.calibrefile ~= nil then if self.calibrefile ~= nil then
local dummy = "" LIBRARY_PATH = string.gsub(self.calibrefile,"/[^/]*$","")
if SEARCH_CASESENSITIVE then if string.sub(LIBRARY_PATH,string.len(LIBRARY_PATH)) ~= "/" then
dummy = "case sensitive)" LIBRARY_PATH = LIBRARY_PATH .. "/"
else
dummy = "case insensitive)"
end end
GLOBAL_INPUT_VALUE = self.search_value
self.search_dialog = InputDialog:new{ self.search_dialog = InputDialog:new{
title = _("Search Books (" .. dummy), title = _("Search Books"),
buttons = { buttons = {
{ {
{ {
@ -117,6 +117,7 @@ function Search:init()
width = Screen:getWidth() * 0.8, width = Screen:getWidth() * 0.8,
height = Screen:getHeight() * 0.2, height = Screen:getHeight() * 0.2,
} }
GLOBAL_INPUT_VALUE = nil
self.search_dialog:onShowKeyboard() self.search_dialog:onShowKeyboard()
UIManager:show(self.search_dialog) UIManager:show(self.search_dialog)
else else

Loading…
Cancel
Save