mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-14 14:41:28 +00:00
Fixed: Bezel state instance variable _bezelState must remove current state when changing to a new state (#3001)
If the bezel state was changed and some attribute was set like an "image". The image would not be found as there were two states active and it would not match.
This commit is contained in:
@@ -973,7 +973,11 @@ CPButtonImageOffset = 3.0;
|
||||
_bezelStyle = aBezelStyle;
|
||||
|
||||
if (_bezelState && newState)
|
||||
{
|
||||
if (currentState)
|
||||
_bezelState =_bezelState.without(currentState);
|
||||
_bezelState = _bezelState.and(newState);
|
||||
}
|
||||
else
|
||||
_bezelState = newState || CPThemeStateNormal;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user