mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-25 07:55:52 +00:00
fixed: CPButton's images were lost when becoming disabled
This commit is contained in:
1 parent
fb20463449
commit
8e026279ac
1 file changed
+2
@@ -380,6 +380,8 @@ CPButtonImageOffset = 3.0;
|
||||
_bezelState = CPThemeStateNormal;
|
||||
|
||||
[self setValue:anImage forThemeAttribute:@"image" inState:_bezelState];
|
||||
// if we omit this, images will disappear as soon as the button becomes disabled
|
||||
[self setValue:anImage forThemeAttribute:@"image" inState:_bezelState.and(CPThemeStateDisabled)];
|
||||
}
|
||||
|
||||
- (CPImage)image
|
||||
|
||||
Reference in new issue
Block a user