File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,13 @@ - (void) updateView
180
180
[self refresh: nil ];
181
181
}
182
182
183
+ - (void )viewLoaded
184
+ {
185
+ float position = [[NSUserDefaults standardUserDefaults ] floatForKey: @" PBGitSplitViewPosition" ];
186
+ if (position)
187
+ [historySplitView setPosition: position ofDividerAtIndex: 0 ];
188
+ }
189
+
183
190
- (NSResponder *)firstResponder ;
184
191
{
185
192
return commitList;
@@ -201,6 +208,9 @@ - (BOOL) hasNonlinearPath
201
208
202
209
- (void ) removeView
203
210
{
211
+ float position = [[[historySplitView subviews ] objectAtIndex: 0 ] frame ].size .height ;
212
+ [[NSUserDefaults standardUserDefaults ] setFloat: position forKey: @" PBGitSplitViewPosition" ];
213
+ [[NSUserDefaults standardUserDefaults ] synchronize ];
204
214
[webView close ];
205
215
[commitController removeObserver: self forKeyPath: @" selection" ];
206
216
[treeController removeObserver: self forKeyPath: @" selection" ];
You can’t perform that action at this time.
0 commit comments