when the ratio is set to unlimited when resuming, reload the inspector

This commit is contained in:
Mitchell Livingston 2010-04-02 18:05:39 +00:00
parent 6a4954e867
commit 05cf5fccef
3 changed files with 5 additions and 2 deletions

View File

@ -1823,7 +1823,7 @@ typedef struct tr_stat
time_t activityDate;
/** A torrent is considered finished if it has met its seed ratio.
As a result, only paused torrent can be finished. */
As a result, only paused torrents can be finished. */
tr_bool finished;
}
tr_stat;

View File

@ -288,6 +288,9 @@ int trashDataFile(const char * filename)
{
tr_torrentStart(fHandle);
[self update];
//capture, specifically, ratio setting changing to unlimited
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateOptions" object: nil];
}
}

View File

@ -651,7 +651,7 @@
//actually draw image
if ([NSApp isOnSnowLeopardOrBetter])
[bitmap drawInRect: barRect fromRect: NSZeroRect operation: NSCompositeSourceOver
fraction: ([fDefaults boolForKey: @"SmallView"] ? 0.2 : 1.0) respectFlipped: YES hints: nil];
fraction: ([fDefaults boolForKey: @"SmallView"] ? 0.25 : 1.0) respectFlipped: YES hints: nil];
else
[bitmap drawInRect: barRect];