Bug 1032070 - [Settings] add done feature in onBeforsShow()

We could simply write `return panel.beforeShow(newPanelElement, options);`.