mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 10:28:32 +00:00
fix 'setNeedsDisplay' is deprecated: first deprecated in macOS 10.14 (#6053)
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
|
||||
NSImage* revealImage = [NSImage imageNamed:self.revealImageString];
|
||||
self.image = revealImage;
|
||||
[self setNeedsDisplay:YES];
|
||||
self.needsDisplay = YES;
|
||||
}
|
||||
|
||||
- (void)updateTrackingAreas
|
||||
|
||||
@@ -119,7 +119,13 @@ static NSTimeInterval const kToggleProgressSeconds = 0.175;
|
||||
|
||||
- (void)awakeFromNib
|
||||
{
|
||||
[NSNotificationCenter.defaultCenter addObserver:self selector:@selector(setNeedsDisplay) name:@"RefreshTorrentTable" object:nil];
|
||||
[NSNotificationCenter.defaultCenter addObserver:self selector:@selector(refreshTorrentTable) name:@"RefreshTorrentTable"
|
||||
object:nil];
|
||||
}
|
||||
|
||||
- (void)refreshTorrentTable
|
||||
{
|
||||
self.needsDisplay = YES;
|
||||
}
|
||||
|
||||
//make sure we don't lose selection on manual reloads
|
||||
|
||||
@@ -227,7 +227,7 @@ NSMutableSet* fTrackerIconLoading;
|
||||
{
|
||||
[fTrackerIconCache setObject:icon forKey:baseAddress];
|
||||
|
||||
[self.controlView setNeedsDisplay:YES];
|
||||
self.controlView.needsDisplay = YES;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user