Changeset 13831


Ignore:
Timestamp:
Jan 22, 2013, 12:44:58 AM (8 years ago)
Author:
livings124
Message:

use the new rename function for the torrent, instead of the per-file function; update the interface right away when renaming the torrent

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r13828 r13831  
    17491749   
    17501750    [FileRenameSheetController presentSheetForTorrent:torrent modalForWindow: fWindow completionHandler: ^(BOOL didRename) {
    1751         NSLog(@"finished");
     1751        if (didRename)
     1752        {
     1753            dispatch_async(dispatch_get_main_queue(), ^{
     1754                [self fullUpdateUI];
     1755            });
     1756        }
    17521757    }];
    17531758}
  • trunk/macosx/FileRenameSheetController.m

    r13828 r13831  
    8686    [self.inputField setStringValue: name];
    8787    [self.renameButton setEnabled: NO];
     88   
     89    #warning size these
     90    [self.renameButton setStringValue: NSLocalizedString(@"Rename", "rename sheet button")];
     91    [self.cancelButton setStringValue: NSLocalizedString(@"Cancel", "rename sheet button")];
    8892}
    8993
  • trunk/macosx/Torrent.m

    r13828 r13831  
    850850    NSDictionary * contextInfo = [@{ @"Nodes" : fFileList, @"CompletionHandler" : [[completionHandler copy] autorelease] } retain];
    851851   
    852     tr_torrentRenamePath(fHandle, fInfo->name, [newName UTF8String], renameCallback, contextInfo);
     852    tr_torrentRename(fHandle, [newName UTF8String], renameCallback, contextInfo);
    853853}
    854854
Note: See TracChangeset for help on using the changeset viewer.