SizePersistedDialog behavior in Editor plugins
Curious as to what the expected behavior with regard to the SizePersistedDialog in editor plugins/tools is.
What I'm noticing right now (at least on Windows) is that the only way to get a dialog's size to persist is by launching the editor as a standalone program, making the size changes, and closing the editor.
When launching the editor from within calibre and running a plugin, the persisted size of a dialog will be the last size saved when it was resized by the standalone instance of the editor. Any subsequent changes to the size of a SizePersistedDialog when the editor is launched from within calibre will persist across editor sessions for that current calibre instance only. Meaning that as soon as calibre is closed and restarted, the size of a SizePersistedDialog will revert back to the last size saved by the standalone editor.
Is this expected? Is there some way to get size changes made from within the calibre-launched editor to persist across calibre instances?
Is the parent parameter being passed to the SizePersistedDialog method (for which I use self.gui) not the same for standalone- vs calibre-launched editor sessions?
Last edited by DiapDealer; 04-19-2015 at 12:26 PM.
|