Changeset 2719


Ignore:
Timestamp:
Aug 11, 2007, 2:44:01 AM (15 years ago)
Author:
livings124
Message:

refresh only necessary rows on mouse down

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r2718 r2719  
    118118    if ([self pointInActionRect: fClickPoint])
    119119    {
    120         [self setNeedsDisplayInRect: [self rectOfRow: [self rowAtPoint: fClickPoint]]]; //ensure button is pushed down
     120        int row = [self rowAtPoint: fClickPoint];
     121        [self setNeedsDisplayInRect: [self rectOfRow: row]]; //ensure button is pushed down
     122       
    121123        [self displayTorrentMenuForEvent: event];
     124       
    122125        fClickPoint = NSZeroPoint;
     126        [self setNeedsDisplayInRect: [self rectOfRow: row]];
    123127    }
    124128    else if ([self pointInPauseRect: fClickPoint] || [self pointInRevealRect: fClickPoint])
     129    {
    125130        fClickIn = YES;
     131        [self setNeedsDisplayInRect: [self rectOfRow: [self rowAtPoint: fClickPoint]]];
     132    }
    126133    else
    127134    {
     
    130137            [fDefaults setBool: ![fDefaults boolForKey: @"UseAdvancedBar"] forKey: @"UseAdvancedBar"];
    131138            fClickPoint = NSZeroPoint;
     139            [self reloadData];
    132140        }
    133141        else
     
    137145                [fDefaults setBool: ![fDefaults boolForKey: @"SmallStatusRegular"] forKey: @"SmallStatusRegular"];
    138146                fClickPoint = NSZeroPoint;
     147                [self reloadData];
    139148            }
    140149
     
    142151        }
    143152    }
    144    
    145     #warning make more efficient
    146     [self display];
    147153}
    148154
Note: See TracChangeset for help on using the changeset viewer.