File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ - (NSString *) description {
3737#pragma mark Presentable
3838
3939- (NSString *) displayDescription {
40- return [NSString stringWithFormat: @" %@ ( %@ ) " , self .message , self .name ];
40+ return [NSString stringWithFormat: @" %@ : %@ " , self .name , self .message ];
4141}
4242
4343- (NSString *) popupDescription {
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ - (void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(
128128 PBGitMenuItem *lastItem = nil ;
129129 for (PBGitStash *stash in newStashes) {
130130 PBGitMenuItem *item = [[PBGitMenuItem alloc ] initWithSourceObject: stash];
131- [stashes addChild : item];
131+ [stashes addChildWithoutSort : item];
132132 lastItem = item;
133133 }
134134 if (lastItem) {
Original file line number Diff line number Diff line change 2727- (NSString *)helpText ;
2828
2929- (void )addChild : (PBSourceViewItem *)child ;
30+ - (void )addChildWithoutSort : (PBSourceViewItem *)child ;
3031- (void )removeChild : (PBSourceViewItem *)child ;
3132
3233// This adds the ref to the path, which should match the item's title,
Original file line number Diff line number Diff line change @@ -62,6 +62,15 @@ - (void)addChild:(PBSourceViewItem *)child
6262 [self .children sortUsingDescriptors: [NSArray arrayWithObject: [[NSSortDescriptor alloc ] initWithKey: @" title" ascending: YES selector: @selector (localizedCaseInsensitiveCompare: )]]];
6363}
6464
65+ - (void )addChildWithoutSort : (PBSourceViewItem *)child
66+ {
67+ if (!child)
68+ return ;
69+
70+ [self .children addObject: child];
71+ child.parent = self;
72+ }
73+
6574- (void )removeChild : (PBSourceViewItem *)child
6675{
6776 if (!child)
You can’t perform that action at this time.
0 commit comments