mirror of
https://github.com/transmission/transmission
synced 2025-03-10 06:02:57 +00:00
use LSMinimumSystemVersion instead of custom version check, because on < 10.4 it will never reach that custom code
This commit is contained in:
parent
98575a0169
commit
c9688d89f8
6 changed files with 5 additions and 24 deletions
|
@ -101,24 +101,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
|
||||
+ (void) initialize
|
||||
{
|
||||
//make sure system requirements are met
|
||||
if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_3)
|
||||
{
|
||||
NSAlert * alert = [[NSAlert alloc] init];
|
||||
[alert addButtonWithTitle: NSLocalizedString(@"Quit", "OS update needed -> button")];
|
||||
[alert setMessageText: NSLocalizedString(@"Transmission requires Mac OS X 10.4 or greater.",
|
||||
"OS update needed -> title")];
|
||||
[alert setInformativeText: NSLocalizedString(@"Transmission has features that require a more "
|
||||
"up-to-date operating system. The operating system must be updated before this version can run.",
|
||||
"OS update needed -> message")];
|
||||
[alert setAlertStyle: NSWarningAlertStyle];
|
||||
|
||||
[alert runModal];
|
||||
[alert release];
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
//make sure another Transmission.app isn't running already
|
||||
NSString * bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
|
||||
int processIdentifier = [[NSProcessInfo processInfo] processIdentifier];
|
||||
|
|
|
@ -45,6 +45,8 @@
|
|||
<string>TR##</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>%%BUNDLE_VERSION%%</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.4.0</string>
|
||||
<key>NSAppleScriptEnabled</key>
|
||||
<string>YES</string>
|
||||
<key>NSMainNibFile</key>
|
||||
|
|
|
@ -252,17 +252,15 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
|||
[titleString drawInRect: titleRect];
|
||||
|
||||
//progress
|
||||
NSRect progressRect;
|
||||
if (!minimal)
|
||||
{
|
||||
NSAttributedString * progressString = [self attributedStatusString: [torrent progressString] withColor: statusColor];
|
||||
progressRect = [self rectForProgressWithString: progressString inBounds: cellFrame];
|
||||
NSRect progressRect = [self rectForProgressWithString: progressString inBounds: cellFrame];
|
||||
[progressString drawInRect: progressRect];
|
||||
}
|
||||
|
||||
//bar
|
||||
NSRect barRect = [self barRectForBounds: cellFrame];
|
||||
//[fDefaults boolForKey: @"UseAdvancedBar"] ? [self drawAdvancedBar: barRect] : [self drawSimpleBar: barRect];
|
||||
[self drawBar: barRect];
|
||||
|
||||
//status
|
||||
|
|
1
macosx/en.lproj/MainMenu.nib/classes.nib
generated
1
macosx/en.lproj/MainMenu.nib/classes.nib
generated
|
@ -43,7 +43,6 @@
|
|||
stopAllTorrents = id;
|
||||
stopSelectedTorrents = id;
|
||||
switchFilter = id;
|
||||
toggleAdvancedBar = id;
|
||||
toggleFilterBar = id;
|
||||
toggleSmallView = id;
|
||||
toggleSpeedLimit = id;
|
||||
|
|
4
macosx/en.lproj/MainMenu.nib/info.nib
generated
4
macosx/en.lproj/MainMenu.nib/info.nib
generated
|
@ -9,7 +9,7 @@
|
|||
<key>1041</key>
|
||||
<string>480 344 208 149 0 0 1680 1028 </string>
|
||||
<key>1480</key>
|
||||
<string>687 587 420 63 0 0 1680 1028 </string>
|
||||
<string>630 671 420 63 0 0 1680 1028 </string>
|
||||
<key>1603</key>
|
||||
<string>601 669 477 67 0 0 1680 1028 </string>
|
||||
<key>1936</key>
|
||||
|
@ -36,8 +36,8 @@
|
|||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>29</integer>
|
||||
<integer>2043</integer>
|
||||
<integer>1603</integer>
|
||||
<integer>2043</integer>
|
||||
<integer>21</integer>
|
||||
<integer>1480</integer>
|
||||
</array>
|
||||
|
|
BIN
macosx/en.lproj/MainMenu.nib/keyedobjects.nib
generated
BIN
macosx/en.lproj/MainMenu.nib/keyedobjects.nib
generated
Binary file not shown.
Loading…
Add table
Reference in a new issue