1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

Simplification

This commit is contained in:
Eric Petit 2006-02-10 19:17:54 +00:00
parent 43696cd5da
commit b4a4557cb7

View file

@ -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];