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:
parent
e12b212ef2
commit
568bc5d4d5
3 changed files with 7 additions and 10 deletions
|
@ -579,11 +579,13 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||||
|
|
||||||
//clear badge
|
//clear badge
|
||||||
[fBadger clearBadge];
|
[fBadger clearBadge];
|
||||||
|
|
||||||
//wait for running transfers to stop and for NAT to be disabled (5 second timeout)
|
//wait for running transfers to stop and for NAT to be disabled (5 second timeout)
|
||||||
NSDate * start = [NSDate date];
|
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);
|
usleep(100000);
|
||||||
|
|
||||||
//remaining calls the same as dealloc
|
//remaining calls the same as dealloc
|
||||||
|
@ -603,8 +605,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||||
[fAutoImportedNames release];
|
[fAutoImportedNames release];
|
||||||
[fPendingTorrentDownloads release];
|
[fPendingTorrentDownloads release];
|
||||||
[fTempTorrentFiles release];
|
[fTempTorrentFiles release];
|
||||||
|
|
||||||
tr_close(fLib);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) handleOpenContentsEvent: (NSAppleEventDescriptor *) event replyEvent: (NSAppleEventDescriptor *) replyEvent
|
- (void) handleOpenContentsEvent: (NSAppleEventDescriptor *) event replyEvent: (NSAppleEventDescriptor *) replyEvent
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
<key>DownloadChoice</key>
|
<key>DownloadChoice</key>
|
||||||
<string>Constant</string>
|
<string>Constant</string>
|
||||||
<key>DownloadFolder</key>
|
<key>DownloadFolder</key>
|
||||||
<string>~/Desktop</string>
|
<string>~/Downloads</string>
|
||||||
<key>DownloadLimit</key>
|
<key>DownloadLimit</key>
|
||||||
<integer>100</integer>
|
<integer>100</integer>
|
||||||
<key>DownloadSound</key>
|
<key>DownloadSound</key>
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
<key>FilterSearchType</key>
|
<key>FilterSearchType</key>
|
||||||
<string>Name</string>
|
<string>Name</string>
|
||||||
<key>IncompleteDownloadFolder</key>
|
<key>IncompleteDownloadFolder</key>
|
||||||
<string>~/Desktop</string>
|
<string>~/Downloads</string>
|
||||||
<key>InfoVisible</key>
|
<key>InfoVisible</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>InspectorSelected</key>
|
<key>InspectorSelected</key>
|
||||||
|
@ -68,8 +68,6 @@
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>MoveChoice</key>
|
<key>MoveChoice</key>
|
||||||
<string>Constant</string>
|
<string>Constant</string>
|
||||||
<key>MoveFolder</key>
|
|
||||||
<string>~/Desktop</string>
|
|
||||||
<key>NatTraversal</key>
|
<key>NatTraversal</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>PiecesViewShowAvailability</key>
|
<key>PiecesViewShowAvailability</key>
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
|
|
||||||
@implementation PeerProgressIndicatorCell
|
@implementation PeerProgressIndicatorCell
|
||||||
|
|
||||||
#warning exists in 10.5
|
|
||||||
- (BOOL) hidden
|
- (BOOL) hidden
|
||||||
{
|
{
|
||||||
return fIsHidden;
|
return fIsHidden;
|
||||||
|
|
Loading…
Reference in a new issue