hawkthorne/hawkthorne-journey — pull request #1657 by robin-allen (2013-07-12 16:07:17+00:00)
Title: Stop window opening and closing 3 times on startup

Caused by calling setMode several times. Fixed by making a wrapper
function which only calls through to setMode if the requested mode is
not already set.