mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
PBGitRepositoryWindow: keep toolbar DisplayMode when switching views
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user