When dock icon is clicked. App window will now show before it doesn't work.