jeromelebel / MongoHub-Mac

Mac Native Mongodb Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Main window should be displayed when all connection windows are closed.

virl opened this issue · comments

commented

Reproduction:

  1. Open Main window, create and open connection.
  2. Connection window opens with DB collections, etc.
  3. Close Main window.
  4. Close connection window - app quits.

Instead on step 4 Main window must be auto-reopened as per Mountain Lion/Lion UI design guidelines - apps in OSX generally closed when user presses cmd+q, not when all of their windows are closed (for example: XCode, Mail, Safari).

commented

Also, if main window is closed and there is no other windows - it must reopen by clicking on app's dock icon.

Not closing the application on window closing is easy. It's actually being overridden to give the current behavior:

-(BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
{
    return YES;
}

Making the expected window show up when the application becomes active might be a little more involved.

It should be fixed with 3.0.7. I let you close this issue if it works for you.