adobe/brackets-shell — pull request #40 by redmunds (2012-07-26 00:24:59+00:00)
Title: Win-only: destroy first browser in map last

On Windows, the main browser is the first in the map. It needs to be destroyed last. So, if we're the main browser, don't erase browser from the map until there's only 1 browser remaining in the list.

This code causes problems on Mac, so it has been isolated for Windows-only.