PBGitRepositoryWindow: keep toolbar DisplayMode when switching views

This commit is contained in:
Pieter de Bie
2008-10-16 14:58:28 +02:00
parent 85c942f530
commit 5cb842ca6b
+3
View File
@@ -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];