TouchMenu: added options to menu items with the following defaults:
keep_menu_open = false
hold_keep_menu_open = true
So, default for Tap callback is to close menu, and for Hold callback
to keep menu open.
In both cases, provide the TouchMenu instance as the 1st argument to
the callback functions (instead of a refresh_menu_func I added in #3941)
so the callback can do more things, like closing, refreshing,
changing menu items text and re-ordering...
ReaderZooming: show symbol for default (like it was done for
ReaderFont, ReaderHyphenation...)
TextEditor plugin: update the previously opened files list in real
time, so the menu can be kept open and used as the TextEditor main
interface.
SSH plugin: keep menu open and update the Start/Stop state in real time
ReadTimer plugin: tried to do what feels right (but I don't use it)
Also remove forgotten cp in the move/paste file code
text=T(_("Would you like %1 to be used as the default font(★), or the fallback font(<28>)?\n\nCharacters not found in the active font are shown in the fallback font instead."),face),
text=_("The table of content for this book is currently an alternative one built from the document headings.\nDo you want to get back the original table of content? (The book will be reloaded.)"),
text=T(_("KOReader %1\n\nA document viewer for E Ink devices.\n\nLicensed under Affero GPL v3. All dependencies are free software.\n\nhttp://koreader.rocks/"),version),
@ -49,6 +51,7 @@ common_info.about = {
}
common_info.report_bug={
text=_("Report a bug"),
keep_menu_open=true,
callback=function()
localmodel=Device.model
UIManager:show(InfoMessage:new{
@ -69,6 +72,7 @@ end
ifDevice:isKobo()then
common_info.reboot={
text=_("Reboot the device"),
keep_menu_open=true,
callback=function()
UIManager:show(ConfirmBox:new{
text=_("Are you sure you want to reboot the device?"),
@ -81,6 +85,7 @@ if Device:isKobo() then
}
common_info.poweroff={
text=_("Power off"),
keep_menu_open=true,
callback=function()
UIManager:show(ConfirmBox:new{
text=_("Are you sure you want to power off the device?"),
text=T(_("News downloader retrieves RSS and Atom news entries and stores them to:\n%1\n\nEach entry is a separate html file, that can be browsed by KOReader file manager.\nItems download limit can be configured in Settings."),
@ -62,6 +62,7 @@ function Send2Ebook:addToMainMenu(menu_items)
sub_item_table={
{
text=_("Download and remove from server"),
keep_menu_open=true,
callback=function()
ifnotNetworkMgr:isOnline()then
wifi_enabled_before_action=false
@ -84,18 +85,22 @@ function Send2Ebook:addToMainMenu(menu_items)
},
{
text=_("Remove read (opened) articles"),
keep_menu_open=true,
callback=self.removeReadActicles,
},
{
text=_("Set custom download directory"),
keep_menu_open=true,
callback=self.setCustomDownloadDirectory,
},
{
text=_("Settings"),
keep_menu_open=true,
callback=self.editFtpConnection,
},
{
text=_("Help"),
keep_menu_open=true,
callback=function()
UIManager:show(InfoMessage:new{
text=T(_('Send2Ebook lets you send articles found on PC/Android phone to your Ebook reader (using ftp server).\n\nMore details: https://github.com/mwoz123/send2ebook\n\nDownloads to local folder: %1'),download_dir_path)