mirror of
https://github.com/transmission/transmission
synced 2024-12-23 08:13:27 +00:00
Simplification
This commit is contained in:
parent
43696cd5da
commit
b4a4557cb7
1 changed files with 1 additions and 10 deletions
|
@ -254,16 +254,7 @@ static void sleepCallBack( void * controller, io_service_t y,
|
|||
//place the window if not open
|
||||
if (![fPrefsWindow isVisible])
|
||||
{
|
||||
NSRect prefsFrame, screenRect;
|
||||
NSPoint point;
|
||||
|
||||
prefsFrame = [fPrefsWindow frame];
|
||||
screenRect = [[NSScreen mainScreen] visibleFrame];
|
||||
point.x = (screenRect.size.width - prefsFrame.size.width) * 0.5;
|
||||
point.y = screenRect.origin.y + screenRect.size.height * 0.67 +
|
||||
prefsFrame.size.height * 0.33;
|
||||
|
||||
[fPrefsWindow setFrameTopLeftPoint: point];
|
||||
[fPrefsWindow center];
|
||||
}
|
||||
|
||||
[fPrefsWindow makeKeyAndOrderFront:NULL];
|
||||
|
|
Loading…
Reference in a new issue