Hi Doitsu,
Quote:
Originally Posted by Doitsu
Would it be possible to also completely hide the Plugin Runner dialog box for autostart & autoclose plugins (e.g validation plugins) or maybe display a generic Qt progress bar/sand timer/spinner instead?
|
I have thought some more on this but the need to have a Cancel button for hanging plugins and the need to have a modal Dialog makes having something there necessary.
What I have done with the very latest commits today:
If and only if a plugin.xml sets both autostart and autoclose to "true"
then the Plugin Dialog is greatly shrunk in size with just the progress bar, Cancel button, and a new "Details..." button beside the "Okay" button. The Console widget is hidden completely. This dialog will disappear upon a successful return of the plugin.
If on the other hand the plugin takes too long to run (hanging?) or it fails (returns a nonzero value) the user can hit the "Details..." button to grow the dialog and show the Console itself. If the Console widget shows no progress, the user can always hit the Cancel button to terminate things or simply copy any error message out of the console window to report the error to the plugin developer.
So if you get a free moment, please rebuild from master today, and then edit one of your plugin's plugin.xml to have both of these:
<autostart>true</autostart>
<autoclose>true</autoclose>
Then modify the that plugin's plugin.py file to return 1 not 0 (ie. tell Sigil the plugin failed).
You will let your plugin "fail" so you get a chance to see the smaller dialog and hit the Details... button if you so desire. Otherwise it may flash by too fast to see it.
Please let me know if you think this is an improvement or not.
KevinH