mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
A bit of a workaround for the weird behavior of adding a file extension when saving a torrent copy.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user