1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-03 18:25:35 +00:00

use "Downloads" folder as default folder

This commit is contained in:
Mitchell Livingston 2007-10-28 04:35:49 +00:00
parent e12b212ef2
commit 568bc5d4d5
3 changed files with 7 additions and 10 deletions

View file

@ -579,11 +579,13 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
//clear badge
[fBadger clearBadge];
//wait for running transfers to stop and for NAT to be disabled (5 second timeout)
NSDate * start = [NSDate date];
while ([start timeIntervalSinceNow] >= -5.0
&& (tr_torrentCount(fLib) > 0 || tr_handleStatus(fLib)->natTraversalStatus != TR_NAT_TRAVERSAL_DISABLED))
tr_close(fLib);
while ([start timeIntervalSinceNow] >= -5.0 && tr_handleStatus(fLib)->natTraversalStatus != TR_NAT_TRAVERSAL_DISABLED)
usleep(100000);
//remaining calls the same as dealloc
@ -603,8 +605,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
[fAutoImportedNames release];
[fPendingTorrentDownloads release];
[fTempTorrentFiles release];
tr_close(fLib);
}
- (void) handleOpenContentsEvent: (NSAppleEventDescriptor *) event replyEvent: (NSAppleEventDescriptor *) replyEvent

View file

@ -45,7 +45,7 @@
<key>DownloadChoice</key>
<string>Constant</string>
<key>DownloadFolder</key>
<string>~/Desktop</string>
<string>~/Downloads</string>
<key>DownloadLimit</key>
<integer>100</integer>
<key>DownloadSound</key>
@ -59,7 +59,7 @@
<key>FilterSearchType</key>
<string>Name</string>
<key>IncompleteDownloadFolder</key>
<string>~/Desktop</string>
<string>~/Downloads</string>
<key>InfoVisible</key>
<false/>
<key>InspectorSelected</key>
@ -68,8 +68,6 @@
<integer>1</integer>
<key>MoveChoice</key>
<string>Constant</string>
<key>MoveFolder</key>
<string>~/Desktop</string>
<key>NatTraversal</key>
<true/>
<key>PiecesViewShowAvailability</key>

View file

@ -26,7 +26,6 @@
@implementation PeerProgressIndicatorCell
#warning exists in 10.5
- (BOOL) hidden
{
return fIsHidden;