Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Commodore64user committed Feb 7, 2025
1 parent adca6d8 commit be00a80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/hotkeys.koplugin/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ function HotKeys:genMenu(hotkey)
no_refresh_on_check = true,
separator = true,
checked_func = function()
-- Return true if no hotkey exists, or if the hotkey exists but has no dispatcher settings
return self.hotkeys[hotkey] == nil or next(self.hotkeys[hotkey]) == nil
end,
callback = function(touchmenu_instance)
Expand All @@ -228,7 +227,7 @@ function HotKeys:genMenu(hotkey)
end
if self.hotkeys[hotkey] and next(self.hotkeys[hotkey]) then
Dispatcher.removeActions(self.hotkeys[hotkey], do_remove)
else -- If no actions are selected, just update the defaults
else
do_remove()
end
end,
Expand Down

0 comments on commit be00a80

Please sign in to comment.