View Single Post
Old 08-17-2022, 03:21 AM   #1231
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,647
Karma: 7908443
Join Date: Sep 2020
Device: none
Thanks again to kiwidude and the current maintainers of this awesome add-on to Calibre.

A long time ago I had changed the plugin code in order to make it not update dynamically the number of items in the lists, or else, not to display that number between parenthesis after the reading list title. I can't recall exactly what change was needed for me in the code.

Reason was that I had multiple clones of the Favourites plugin nicely arranged in the menubar, in order to offer a more interesting use of the plugin, for me personally.

Back then, I had something like this in the menubar:

- Publishers (Favourites Plugin menu "1" - named Publishers)
submenu item --- Public Domain
submenu item --- PublisherX
submenu item --- PublisherY

- Spiritual (Favourites Plugin menu "2" - named Spiritual)
submenu item --- authorA
submenu item --- authorB
submenu item --- authorC in myfavorites

Each submenu item was a reading list generated from a populated search like publisher:X, author:C #myfav:yes and so on.

And I used to place some other main menus, to make those submenu items easily and nicely arranged and accessible by two mouse clicks.

Then I thought I'd ask you to help me get the latest plugin version work like that for me. If i recall correctly, I modified the 1.66 version by intuitively removing some code that I figured would remove the dynamic updating (number of books in the list). By the way, I'm no coder.

As that modified version backup that I have is on a PC unavailable to me at this time, I thought I might have some kind of luck just reporting my use case.

I had planned to to do a text diff between the 1.66 version that you kindly provided me here and the modified one, but that's not viable ATM... And I mildly doubt that the 1.66 modified would work with Calibre 6/ QT6.

Oh I should clarify that, on the current plugin version (and the original one, of course) what happens is that, after adding the Reading Lists to the Favourites Menu, they soon become greyed out (unavailable). This happens because, for instance, the submenu item "author:C #myfav:yes" named as AuthorC Myfavs doesn't stay that way as soon as the number of books in that list is updated. So it isn't more AuthorC Myfavs, but rather becomes AuthorC Myfavs (20) or AuthorC Myfavs (21)...
Comfy.n is offline   Reply With Quote