Skip to content

Commit

Permalink
BaseGraphicsPathSkin: fix state remaining temporarily unchanged after…
Browse files Browse the repository at this point in the history
… setting new uiContext/stateContext
  • Loading branch information
joshtynjala committed Nov 12, 2024
1 parent 517771b commit da6bca6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/feathers/skins/BaseGraphicsPathSkin.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ package feathers.skins;

import feathers.controls.IToggle;
import feathers.core.IStateContext;
import feathers.core.IUIControl;
import feathers.graphics.FillStyle;
import feathers.graphics.LineStyle;
import openfl.display.InterpolationMethod;
Expand Down Expand Up @@ -118,6 +119,24 @@ class BaseGraphicsPathSkin extends ProgrammaticSkin {
return this._selectedFill;
}

override private function set_uiContext(value:IUIControl):IUIControl {
if (this._uiContext == value) {
return this._uiContext;
}
this._previousBorder = null;
this._previousFill = null;
return super.uiContext = value;
}

override private function set_stateContext(value:IStateContext<Dynamic>):IStateContext<Dynamic> {
if (this._stateContext == value) {
return this._stateContext;
}
this._previousBorder = null;
this._previousFill = null;
return super.stateContext = value;
}

private var _stateToBorder:Map<EnumValue, LineStyle>;

private var _border:LineStyle;
Expand Down

0 comments on commit da6bca6

Please sign in to comment.