View Single Post
Old 12-29-2013, 08:10 AM   #1
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Detecting change in formats

How can I detect, from a plugin, when formats are added/removed from a selected book?

I detect when the selection is changed:
Code:
self.gui.library_view.selectionModel().selectionChanged.connect(self.update_info)
but if the current book is modified (by adding/removing some format) while the plugin is open, it is not updated until I change the selection. I tried connecting currentChanged, but that didn't work. Is there some other signal I can connect?
Jellby is offline   Reply With Quote