Show button when selected or preselected

This commit is contained in:
smoogipoo 2020-09-08 14:03:49 +09:00
parent 32e3f5d091
commit 8a3c8a6185
1 changed files with 7 additions and 1 deletions

View File

@ -231,7 +231,13 @@ private void collectionChanged()
updateButtonVisibility(); updateButtonVisibility();
} }
private void updateButtonVisibility() => addOrRemoveButton.Alpha = IsHovered || beatmapInCollection ? 1 : 0; protected override void OnSelectChange()
{
base.OnSelectChange();
updateButtonVisibility();
}
private void updateButtonVisibility() => addOrRemoveButton.Alpha = IsHovered || IsPreSelected || beatmapInCollection ? 1 : 0;
private void addOrRemove() private void addOrRemove()
{ {