fix: disabled button turns into focused after click
This commit is contained in:
@@ -17,6 +17,17 @@ public partial class PoloniumTextureButton : TextureButton
|
||||
|
||||
private GlobalRegistry.TextureSetName PrivateTextureSetName { get; set; }
|
||||
|
||||
public bool ButtonDisabled
|
||||
{
|
||||
get => Disabled;
|
||||
set
|
||||
{
|
||||
Disabled = value;
|
||||
FocusMode = Disabled ? FocusMode = Control.FocusModeEnum.None : FocusMode = Control.FocusModeEnum.All;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Export]
|
||||
public GlobalRegistry.TextureSetName TextureSetName
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user