reopen application opens main window on Mac (issue #259)