]> granicus.if.org Git - transmission/commitdiff
when the ratio is set to unlimited when resuming, reload the inspector
authorMitchell Livingston <livings124@transmissionbt.com>
Fri, 2 Apr 2010 18:05:39 +0000 (18:05 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Fri, 2 Apr 2010 18:05:39 +0000 (18:05 +0000)
libtransmission/transmission.h
macosx/Torrent.m
macosx/TorrentCell.m

index 7f59651cf0d28f741cb8a82a909ccdcc30b3432c..47481d7edc7ae07d870f528a81ac9922021a4e36 100644 (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;
index ea07425e98391ac7d6b47385294adaa0d97d5912..bcfeb6ff1c2d2cb1141915f6c046a46ab6466dcb 100644 (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];
     }
 }
 
index 5f152134a6011210af3dcd9b3b05ff3527c208c3..dd0d7185619727c9826e4fca7dc1db20ab60fb93 100644 (file)
     //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];