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

nit: suggest to use normal indention.