Ignore:
Timestamp:
Jun 21, 2007, 1:35:57 AM (15 years ago)
Author:
livings124
Message:

save the download location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/CreatorWindowController.m

    r2167 r2175  
    2626#import "StringAdditions.h"
    2727
    28 #define DEFAULT_SAVE_LOCATION @"~/Desktop/"
    29 
    3028@interface CreatorWindowController (Private)
    3129
     
    123121                                        piecesCountString, [NSString stringForFileSize: fInfo->pieceSize]]];
    124122   
    125     fLocation = [[[DEFAULT_SAVE_LOCATION stringByAppendingPathComponent: [name stringByAppendingPathExtension: @"torrent"]]
    126                                             stringByExpandingTildeInPath] retain];
     123    fLocation = [[[[fDefaults stringForKey: @"CreatorLocation"] stringByExpandingTildeInPath] stringByAppendingPathComponent:
     124                    [name stringByAppendingPathExtension: @"torrent"]] retain];
    127125    [fLocationField setStringValue: [fLocation stringByAbbreviatingWithTildeInPath]];
    128126    [fLocationField setToolTip: fLocation];
     
    232230    [fDefaults setBool: [fPrivateCheck state] == NSOnState forKey: @"CreatorPrivate"];
    233231    [fDefaults setBool: fOpenTorrent forKey: @"CreatorOpen"];
     232    [fDefaults setObject: [fLocation stringByDeletingLastPathComponent] forKey: @"CreatorLocation"];
    234233   
    235234    tr_makeMetaInfo(fInfo, [fLocation UTF8String], [trackerString UTF8String], [[fCommentView string] UTF8String],
Note: See TracChangeset for help on using the changeset viewer.