mirror of
https://github.com/transmission/transmission
synced 2025-02-03 21:12:05 +00:00
Don't change pref view to the current pref view.
This commit is contained in:
parent
5f6b154c1e
commit
20bcc5101b
1 changed files with 4 additions and 1 deletions
|
@ -810,6 +810,9 @@
|
|||
{
|
||||
NSWindow * window = [self window];
|
||||
|
||||
if ([window contentView] == view)
|
||||
return;
|
||||
|
||||
NSRect windowRect = [window frame];
|
||||
int difference = [view frame].size.height - [[window contentView] frame].size.height;
|
||||
windowRect.origin.y -= difference;
|
||||
|
@ -817,8 +820,8 @@
|
|||
|
||||
[window setTitle: [fToolbar selectedItemIdentifier]];
|
||||
|
||||
[window setContentView: view];
|
||||
[view setHidden: YES];
|
||||
[window setContentView: view];
|
||||
[window setFrame: windowRect display: YES animate: YES];
|
||||
[view setHidden: NO];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue