Skip to content

Commit

Permalink
remove delay so icons are in sync when appears
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandUI committed Jun 21, 2024
1 parent a06381b commit 0b55d4e
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions WalletWasabi.Fluent/Behaviors/CheckMarkVisibilityBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,15 @@ protected override void OnAttachedToVisualTree(CompositeDisposable disposable)

hasErrors.ToSignal()
.Merge(text.ToSignal())
.Throttle(TimeSpan.FromMilliseconds(100))
.ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(
_ =>
.Subscribe(_ =>
{
if (AssociatedObject is { })
{
if (AssociatedObject is { })
{
AssociatedObject.IsVisible =
!DataValidationErrors.GetHasErrors(ownerTextBox) &&
!string.IsNullOrEmpty(ownerTextBox.Text);
}
})
AssociatedObject.IsVisible =
!DataValidationErrors.GetHasErrors(ownerTextBox) &&
!string.IsNullOrEmpty(ownerTextBox.Text);
}
})
.DisposeWith(disposable);
}
}

0 comments on commit 0b55d4e

Please sign in to comment.