-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calibre plugin - Series/Tag browser updated to show back button. #8869
Calibre plugin - Series/Tag browser updated to show back button. #8869
Conversation
Found a bug. Working on fixing it. |
- Moved "find books" option from CalibreSearch:find(option) into CalibreSearch:browse(option) function. This way all search options are handled in one place only. - Menu is created only once and it is in CalibreSearch:browse(option) function. This is where it is also invoked with UIManager:show(w). Switching between different menu content (tags/series/books) is done using CalibreSearch:switchResults function which will internally call Menu:switchItemTable. Previously menu was being instantiated in 2 places depending on are we searching books or series/tags - Return arrow navigation: Border around Menu is gone to give space for back arrow. Navigation seems to be working fine so far but will give it some time to test in case I find any other bugs
Seems to be working as I expect it. Tested using emulator and Libra H20. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I don't have time to test it in the near future.
LGTM and see how it behaves in "production" :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix these issues?
plugins/calibre.koplugin/search.lua:6:7: unused variable 'CenterContainer'
plugins/calibre.koplugin/search.lua:17:7: unused variable 'Size'
plugins/calibre.koplugin/search.lua:384:1: line contains only whitespace
plugins/calibre.koplugin/search.lua:459:1: line contains only whitespace
@Frenzie Done. QQ: What do you execute to get those warnings? I was just running it with |
In this case I just saw a red cross on the CircleCI build. If you run |
I had to install luacheck but yeah I see it now. Good to know going forward. |
Thanks! |
When browsing tags and series there was no way to go "back" from tag/series results. Figured we can enable return button navigation by pushing entry to paths property of Menu widget.
When return button is enabled it is overlapping with rounded border previously present on browse widget so I made it borderless.
This change is