View Single Post
Old 07-20-2016, 10:03 AM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,427
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If your plugin does not make any changes to the file currently displayed in the preview panel, then it will not refresh automatically, you'd have to force it to refresh, by doing:

self.boss.gui.preview.start_refresh_timer()

after the call to

apply_container_update_to_gui()

Or you could just wait for the next release, where I have apply_container_update_to_gui() do that automatically.

https://github.com/kovidgoyal/calibr...136e9a0fdd5192
kovidgoyal is online now   Reply With Quote