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 {
37
37
#pragma mark Presentable
38
38
39
39
- (NSString *) displayDescription {
40
- return [NSString stringWithFormat: @" %@ ( %@ ) " , self .message , self .name ];
40
+ return [NSString stringWithFormat: @" %@ : %@ " , self .name , self .message ];
41
41
}
42
42
43
43
- (NSString *) popupDescription {
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ - (void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(
128
128
PBGitMenuItem *lastItem = nil ;
129
129
for (PBGitStash *stash in newStashes) {
130
130
PBGitMenuItem *item = [[PBGitMenuItem alloc ] initWithSourceObject: stash];
131
- [stashes addChild : item];
131
+ [stashes addChildWithoutSort : item];
132
132
lastItem = item;
133
133
}
134
134
if (lastItem) {
Original file line number Diff line number Diff line change 27
27
- (NSString *)helpText ;
28
28
29
29
- (void )addChild : (PBSourceViewItem *)child ;
30
+ - (void )addChildWithoutSort : (PBSourceViewItem *)child ;
30
31
- (void )removeChild : (PBSourceViewItem *)child ;
31
32
32
33
// 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
62
62
[self .children sortUsingDescriptors: [NSArray arrayWithObject: [[NSSortDescriptor alloc ] initWithKey: @" title" ascending: YES selector: @selector (localizedCaseInsensitiveCompare: )]]];
63
63
}
64
64
65
+ - (void )addChildWithoutSort : (PBSourceViewItem *)child
66
+ {
67
+ if (!child)
68
+ return ;
69
+
70
+ [self .children addObject: child];
71
+ child.parent = self;
72
+ }
73
+
65
74
- (void )removeChild : (PBSourceViewItem *)child
66
75
{
67
76
if (!child)
You can’t perform that action at this time.
0 commit comments