mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
get mac build compiling again
This commit is contained in:
parent
65dba27217
commit
12f377fc6e
2 changed files with 14 additions and 11 deletions
|
@ -268,11 +268,11 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
&& (canMove = [self alertForMoveFolderAvailable]))
|
&& (canMove = [self alertForMoveFolderAvailable]))
|
||||||
{
|
{
|
||||||
//pause without actually stopping
|
//pause without actually stopping
|
||||||
tr_setUseCustomUpload(fHandle, 1);
|
tr_torrentEnableMaxSpeedUL(fHandle, 1);
|
||||||
tr_setUploadLimit(fHandle, 0);
|
tr_torrentSetMaxSpeedUL(fHandle, 0);
|
||||||
|
|
||||||
tr_setUseCustomDownload(fHandle, 1);
|
tr_torrentEnableMaxSpeedDL(fHandle, 1);
|
||||||
tr_setDownloadLimit(fHandle, 0);
|
tr_torrentSetMaxSpeedDL(fHandle, 0);
|
||||||
|
|
||||||
if ([[NSFileManager defaultManager] movePath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]
|
if ([[NSFileManager defaultManager] movePath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]
|
||||||
toPath: [fDownloadFolder stringByAppendingPathComponent: [self name]] handler: nil])
|
toPath: [fDownloadFolder stringByAppendingPathComponent: [self name]] handler: nil])
|
||||||
|
@ -687,11 +687,11 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
|
|
||||||
- (void) updateSpeedSetting
|
- (void) updateSpeedSetting
|
||||||
{
|
{
|
||||||
tr_setUseCustomUpload(fHandle, fCheckUpload != NSMixedState);
|
tr_torrentEnableMaxSpeedUL(fHandle, fCheckUpload != NSMixedState);
|
||||||
tr_setUploadLimit(fHandle, fCheckUpload == NSOnState ? fUploadLimit : -1);
|
tr_torrentSetMaxSpeedUL(fHandle, fCheckUpload == NSOnState ? fUploadLimit : -1);
|
||||||
|
|
||||||
tr_setUseCustomDownload(fHandle, fCheckDownload != NSMixedState);
|
tr_torrentEnableMaxSpeedDL(fHandle, fCheckDownload != NSMixedState);
|
||||||
tr_setDownloadLimit(fHandle, fCheckDownload == NSOnState ? fDownloadLimit : -1);
|
tr_torrentSetMaxSpeedDL(fHandle, fCheckDownload == NSOnState ? fDownloadLimit : -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setWaitToStart: (BOOL) wait
|
- (void) setWaitToStart: (BOOL) wait
|
||||||
|
@ -756,8 +756,11 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
}
|
}
|
||||||
|
|
||||||
//pause without actually stopping
|
//pause without actually stopping
|
||||||
tr_setDownloadLimit(fHandle, 0);
|
tr_torrentEnableMaxSpeedUL(fHandle, 1);
|
||||||
tr_setUploadLimit(fHandle, 0);
|
tr_torrentSetMaxSpeedUL(fHandle, 0);
|
||||||
|
|
||||||
|
tr_torrentEnableMaxSpeedDL(fHandle, 1);
|
||||||
|
tr_torrentSetMaxSpeedDL(fHandle, 0);
|
||||||
|
|
||||||
if ([[NSFileManager defaultManager] movePath: [oldFolder stringByAppendingPathComponent: [self name]]
|
if ([[NSFileManager defaultManager] movePath: [oldFolder stringByAppendingPathComponent: [self name]]
|
||||||
toPath: [folder stringByAppendingPathComponent: [self name]] handler: nil])
|
toPath: [folder stringByAppendingPathComponent: [self name]] handler: nil])
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
%define version @VERSION@
|
%define version @VERSION@
|
||||||
%define release 1
|
%define release 1
|
||||||
|
|
||||||
Summary: Transmission Bittorrent Client
|
Summary: Transmission BitTorrent Client
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
|
|
Loading…
Reference in a new issue