View Single Post
Old 06-12-2023, 03:55 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,471
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
The View menu has a list of recently viewed books.

a) How is this generated? I noticed the 'view' action, clicking a format in details, and opening a format in the MDE all add it to the list. Are there any other actions that do this?
Look at source calibre.gui2/actions/view.py. The history is updated by viewing a book or by clearing history. Search for "update_history".

The history is stored in a per-library preference named "gui_view_history". You can search the source for that string to see where it might be updated.
Quote:
b) Is there a way to change the number of books shown on the list? I looked through tweaks but wasn't sure of what it would be called.
Search in tweaks for "history".
chaley is offline   Reply With Quote