From 5cb842ca6b6f10ccdccac4f499a5190fae2cdf6a Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Thu, 16 Oct 2008 14:58:28 +0200 Subject: [PATCH] PBGitRepositoryWindow: keep toolbar DisplayMode when switching views --- PBGitWindowController.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PBGitWindowController.m b/PBGitWindowController.m index 18c2393..1235620 100644 --- a/PBGitWindowController.m +++ b/PBGitWindowController.m @@ -90,6 +90,9 @@ - (void) useToolbar:(NSToolbar *)toolbar { + toolbar.displayMode = [self.window toolbar].displayMode; + [toolbar setVisible: [[self.window toolbar] isVisible]]; + NSSegmentedControl *item = (NSSegmentedControl *)[[[toolbar items] objectAtIndex:0] view]; [item bind:@"selectedIndex" toObject:self withKeyPath:@"selectedViewIndex" options:0];