File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ - (IBAction) commit:(id) sender
126
126
[unstagedFilesController setSelectionIndexes: [NSIndexSet indexSet ]];
127
127
128
128
self.busy = YES ;
129
+ [commitMessageView setEditable: NO ];
129
130
130
131
[index commitWithMessage: commitMessage];
131
- [commitMessageView setEditable: NO ];
132
132
}
133
133
134
134
@@ -145,16 +145,17 @@ - (void)commitStatusUpdated:(NSNotification *)notification
145
145
146
146
- (void )commitFinished : (NSNotification *)notification
147
147
{
148
+ [commitMessageView setEditable: YES ];
148
149
[commitMessageView setString: @" " ];
149
150
[webController setStateMessage: [NSString stringWithFormat: [[notification userInfo ] objectForKey: @" description" ]]];
150
- [commitMessageView setEditable: YES ];
151
151
}
152
152
153
153
- (void )commitFailed : (NSNotification *)notification
154
154
{
155
155
self.busy = NO ;
156
156
NSString *reason = [[notification userInfo ] objectForKey: @" description" ];
157
157
self.status = [@" Commit failed: " stringByAppendingString: reason];
158
+ [commitMessageView setEditable: YES ];
158
159
[[repository windowController ] showMessageSheet: @" Commit failed" infoText: reason];
159
160
}
160
161
You can’t perform that action at this time.
0 commit comments