mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
use NSSearchPathForDirectoriesInDomains() for searching for sounds
This commit is contained in:
@@ -142,7 +142,7 @@
|
||||
[fNameField setStringValue: name];
|
||||
[fNameField setToolTip: fPath];
|
||||
|
||||
BOOL multifile = !fInfo->isSingleFile;
|
||||
const BOOL multifile = !fInfo->isSingleFile;
|
||||
|
||||
NSImage * icon = [[NSWorkspace sharedWorkspace] iconForFileType: multifile
|
||||
? NSFileTypeForHFSTypeCode('fldr') : [fPath pathExtension]];
|
||||
@@ -162,13 +162,12 @@
|
||||
}
|
||||
[fStatusField setStringValue: statusString];
|
||||
|
||||
const int piecesCount = fInfo->pieceCount;
|
||||
if (piecesCount == 1)
|
||||
if (fInfo->pieceCount == 1)
|
||||
[fPiecesField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"1 piece, %@", "Create torrent -> info"),
|
||||
[NSString stringForFileSize: fInfo->pieceSize]]];
|
||||
else
|
||||
[fPiecesField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d pieces, %@ each", "Create torrent -> info"),
|
||||
piecesCount, [NSString stringForFileSize: fInfo->pieceSize]]];
|
||||
fInfo->pieceCount, [NSString stringForFileSize: fInfo->pieceSize]]];
|
||||
|
||||
fLocation = [[[[fDefaults stringForKey: @"CreatorLocation"] stringByExpandingTildeInPath] stringByAppendingPathComponent:
|
||||
[name stringByAppendingPathExtension: @"torrent"]] retain];
|
||||
|
||||
Reference in New Issue
Block a user