Skip to content

Commit

Permalink
[fix, lang] ReaderGesture: toggle highlight action to cycle (koreader…
Browse files Browse the repository at this point in the history
…#4809)

I overlooked this until I noticed it on Transifex today.

See koreader#4791 (comment)

Also changing the internal name because for something that's only been in one or two nightlies there's no point in prematurely introducing legacy settings.
  • Loading branch information
Frenzie authored and mwoz123 committed Mar 29, 2020
1 parent cb324b2 commit dda8442
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/apps/reader/modules/readergesture.lua
Expand Up @@ -78,7 +78,7 @@ local action_strings = {

folder_up = _("Folder up"),
folder_shortcuts = _("Folder shortcuts"),
toggle_highlight_action = _("Toggle highlight action"),
cycle_highlight_action = _("Cycle highlight action"),
wallabag_download = _("Wallabag retrieval"),
}

Expand Down Expand Up @@ -362,7 +362,7 @@ function ReaderGesture:buildMenu(ges, default)
{"zoom_column", not self.is_docless},
{"zoom_content", not self.is_docless},
{"zoom_page", not self.is_docless, true},
{"toggle_highlight_action", not self.is_docless},
{"cycle_highlight_action", not self.is_docless},
{"wallabag_download", self.ui.wallabag ~= nil},
}
local return_menu = {}
Expand Down Expand Up @@ -804,7 +804,7 @@ function ReaderGesture:gestureAction(action, ges)
self.ui:handleEvent(Event:new("SetZoomMode", "page"))
elseif action == "wallabag_download" then
self.ui:handleEvent(Event:new("SynchronizeWallabag"))
elseif action == "toggle_highlight_action" then
elseif action == "cycle_highlight_action" then
self.ui:handleEvent(Event:new("CycleHighlightAction"))
end
return true
Expand Down

0 comments on commit dda8442

Please sign in to comment.