I've discovered that the "precedence" of dock widgets in a tabbed configuration seems to be based on what order (LIFO) they were added to MainWindow in ExtendUI (which handles the default placement of the various widgets in new installations). The fact that restoreState() happens after ExtendUI seems to have no bearing on changing the "natural" precedence of which tab will be current whenever Sigil opens.
The last dock widget added to MainWindow (currently the Clips Editor) will be the one that's open whenever Sigil opens (provided the Clips Editor is currently tabbed with other widgets).
|