Permalink
Browse files

Merge pull request #52 from belkadan/master

Fix for white bg / open drawer on drag-drop launch. Fixes #29.
  • Loading branch information...
jezdez committed Aug 4, 2011
2 parents 0532464 + 623e621 commit 687ae632aec817063c8394514691b2eddf0ef93f
Showing with 3 additions and 0 deletions.
  1. +1 −0 Classes/MDMissingDrawer.m
  2. +2 −0 Classes/NSWindowController+MDAdditions.m
@@ -90,6 +90,7 @@ - (id)initWithPlugInController:(id<TMPlugInController>)aController {
[self _injectPluginMethods];
[[[NSApp mainWindow] windowController] MD_splitWindowIfNeeded];
[[[NSApp mainWindow] windowController] MD_windowDidBecomeMain:nil];
[self _installMenuItems];
[self _injectPreferenceMethods];
}
@@ -43,6 +43,8 @@ - (void)MD_splitWindowIfNeeded {
// with one that uses the MissingDrawer.
NSDrawer *drawer = [[window drawers] objectAtIndex:0];
if (drawer) {
[drawer close]; // does no harm if the drawer is already closed
NSView *leftView = [[drawer contentView] retain];
[drawer setContentView:nil];
[window setContentView:nil];

0 comments on commit 687ae63

Please sign in to comment.