This events is called when focus has been gained, usually on startup or after a system dialog has been closed