add an option to show the "add" window only for multifile torrents

This commit is contained in:
Mitchell Livingston 2008-01-14 04:22:24 +00:00
parent 8af8e75085
commit 169c259988
3 changed files with 2807 additions and 2704 deletions

View File

@ -729,7 +729,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
return;
}
BOOL showWindow = type == ADD_SHOW_OPTIONS || [fDefaults boolForKey: @"DownloadAsk"];
torrentFileState deleteTorrentFile;
switch (type)
{
@ -758,7 +757,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
tr_metainfoFree(&info);
continue;
}
tr_metainfoFree(&info);
tr_ctorFree(ctor);
//determine download location
@ -772,6 +770,11 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
else
location = nil;
//determine to show the options window
BOOL showWindow = type == ADD_SHOW_OPTIONS || ([fDefaults boolForKey: @"DownloadAsk"]
&& (![fDefaults boolForKey: @"DownloadAskMulti"] || info.isMultifile));
tr_metainfoFree(&info);
if (!(torrent = [[Torrent alloc] initWithPath: torrentPath location: location
deleteTorrentFile: showWindow ? TORRENT_FILE_SAVE : deleteTorrentFile lib: fLib]))
continue;

View File

@ -44,6 +44,8 @@
<false/>
<key>DownloadAsk</key>
<true/>
<key>DownloadAskMulti</key>
<false/>
<key>DownloadFolder</key>
<string>~/Downloads</string>
<key>DownloadLimit</key>

File diff suppressed because it is too large Load Diff