A bit of a workaround for the weird behavior of adding a file extension when saving a torrent copy.
This commit is contained in:
parent
de20500392
commit
59ddd1f75c
|
@ -700,13 +700,11 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
{
|
||||
NSSavePanel * panel = [NSSavePanel savePanel];
|
||||
[panel setRequiredFileType: @"torrent"];
|
||||
[panel setCanSelectHiddenExtension: NO];
|
||||
[panel setExtensionHidden: NO];
|
||||
[panel setCanSelectHiddenExtension: YES];
|
||||
|
||||
[panel beginSheetForDirectory: nil file: [torrent name]
|
||||
modalForWindow: fWindow modalDelegate: self didEndSelector:
|
||||
@selector( saveTorrentCopySheetClosed:returnCode:contextInfo: )
|
||||
contextInfo: torrents];
|
||||
@selector(saveTorrentCopySheetClosed:returnCode:contextInfo:) contextInfo: torrents];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue