mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
hide the action button in minimal mode
This commit is contained in:
parent
804d0193d0
commit
4506f61a9e
1 changed files with 8 additions and 4 deletions
|
@ -522,10 +522,14 @@
|
|||
fraction: 1.0];
|
||||
|
||||
//action button
|
||||
NSImage * actionImage = /*fMouseDownActionButton ? [NSImage imageNamed: @"ActionOn.png"] :*/ [NSImage imageNamed: @"ActionOff.png"];
|
||||
[actionImage setFlipped: YES];
|
||||
[actionImage drawInRect: [self actionButtonRectForBounds: cellFrame] fromRect: NSZeroRect operation: NSCompositeSourceOver
|
||||
fraction: 1.0];
|
||||
if (!minimal)
|
||||
{
|
||||
NSImage * actionImage = /*fMouseDownActionButton ? [NSImage imageNamed: @"ActionOn.png"] :*/
|
||||
[NSImage imageNamed: @"ActionOff.png"];
|
||||
[actionImage setFlipped: YES];
|
||||
[actionImage drawInRect: [self actionButtonRectForBounds: cellFrame] fromRect: NSZeroRect operation: NSCompositeSourceOver
|
||||
fraction: 1.0];
|
||||
}
|
||||
|
||||
//status
|
||||
if (!minimal)
|
||||
|
|
Loading…
Reference in a new issue