View Single Post
Old 03-24-2014, 12:44 AM   #35
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,435
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's all BR's fault. He pointed out that if you launch the editor from within calibre and the close the editor before quitting calibre various things like last opened locations for the file dialogs, some history lists and so on dont get saved.

This was because the editor uses widgets from the main calibre codebase, and some of those widgets save their history to dynamic.pickle. Therefore, the editor needed to be modified so that the widgets when used inside the editor uise an editor specifc config file.

However, since at this time the editor had already been released for a while, I did not want people to lose their saved history/open lists etc so I have it setup to duplicate the lists in both places, which works well, at the cost of a few extra kilobytes of disk space.

There is still a problem stemming from the fact that the editor can have multiple instances running. What history/settings get saved depends on which of the instances you quit last. Fixing that, however, is way too much work since it would require reqriting various widgets to be multiple instance aware.
kovidgoyal is offline   Reply With Quote