1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

Hide pieces view if a single torrent is not selected.

This commit is contained in:
Mitchell Livingston 2006-09-27 19:16:34 +00:00
parent 7e846ba093
commit ff499d0328
2 changed files with 4 additions and 0 deletions

View file

@ -48,6 +48,8 @@
fBlue3Piece = [NSImage imageNamed: @"BoxBlue3.tiff"]; fBlue3Piece = [NSImage imageNamed: @"BoxBlue3.tiff"];
[fBlue3Piece setScalesWhenResized: YES]; [fBlue3Piece setScalesWhenResized: YES];
[fBlue3Piece setSize: size]; [fBlue3Piece setSize: size];
[self setTorrent: nil];
} }
return self; return self;
@ -97,6 +99,8 @@
[self updateView: YES]; [self updateView: YES];
} }
[fImageView setHidden: torrent == nil];
} }
- (void) updateView: (BOOL) first - (void) updateView: (BOOL) first