mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
We now require Mac OS X 10.6 or later. Make that change and all the nice little adjustments that go with it.
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
#import "BlocklistScheduler.h"
|
||||
#import "PortChecker.h"
|
||||
#import "BonjourController.h"
|
||||
#import "NSApplicationAdditions.h"
|
||||
#import "NSStringAdditions.h"
|
||||
#import "UKKQueue.h"
|
||||
|
||||
@@ -541,20 +540,7 @@ tr_session * fHandle;
|
||||
NSDate * updatedDate = [fDefaults objectForKey: @"BlocklistNewLastUpdateSuccess"];
|
||||
|
||||
if (updatedDate)
|
||||
{
|
||||
if ([NSApp isOnSnowLeopardOrBetter])
|
||||
updatedDateString = [NSDateFormatter localizedStringFromDate: updatedDate dateStyle: NSDateFormatterFullStyle
|
||||
timeStyle: NSDateFormatterShortStyle];
|
||||
else
|
||||
{
|
||||
NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init];
|
||||
[dateFormatter setDateStyle: NSDateFormatterFullStyle];
|
||||
[dateFormatter setTimeStyle: NSDateFormatterShortStyle];
|
||||
|
||||
updatedDateString = [dateFormatter stringFromDate: updatedDate];
|
||||
[dateFormatter release];
|
||||
}
|
||||
}
|
||||
updatedDateString = [NSDateFormatter localizedStringFromDate: updatedDate dateStyle: NSDateFormatterFullStyle timeStyle: NSDateFormatterShortStyle];
|
||||
else
|
||||
updatedDateString = NSLocalizedString(@"N/A", "Prefs -> blocklist -> message");
|
||||
}
|
||||
@@ -1370,7 +1356,7 @@ tr_session * fHandle;
|
||||
return;
|
||||
|
||||
NSRect windowRect = [window frame];
|
||||
float difference = ([view frame].size.height - [[window contentView] frame].size.height) * [window userSpaceScaleFactor];
|
||||
const CGFloat difference = (NSHeight([view frame]) - NSHeight([[window contentView] frame])) * [window userSpaceScaleFactor];
|
||||
windowRect.origin.y -= difference;
|
||||
windowRect.size.height += difference;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user