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

nit: We don't need to return a Promise explicitly.