Fix scrolling text control
MODIFY
WalletWasabi.Fluent/Controls/ScrollingTextBox.cs
WalletWasabi.Fluent/Controls/ScrollingTextBox.cs
@@ -29,9 +29,6 @@ public class ScrollingTextBlock : TextBlock
public ScrollingTextBlock()
{
- this.WhenAnyValue(x => x.Text)
- .Subscribe(OnTextChanged);
-
new Clock().Subscribe(Tick);
TextWrapping = TextWrapping.NoWrap;
@@ -39,17 +36,6 @@ public class ScrollingTextBlock : TextBlock
AffectsRender<ScrollingTextBlock>(TextProperty);
}
- private void OnTextChanged(string? obj)
- {
- if (obj is null || obj.Length >= _offset)
- {
- _offset = 0;
- _waiting = true;
- _waitCounter = TimeSpan.Zero;
- Dispatcher.UIThread.Post(InvalidateVisual, DispatcherPriority.Background);
- }
- }
-
/// <summary>
/// Gets or sets the gap between animated text.
/// </summary>

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/MusicControlsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/MusicControlsViewModel.cs
@@ -19,16 +19,14 @@ public partial class MusicControlsViewModel : ViewModelBase
var coinJoinManager = Services.HostedServices.Get<CoinJoinManager>();
- CurrentStatus = $"CoinJoin will auto-start in this is a very long message";
-
- // Observable.Interval(TimeSpan.FromSeconds(1))
- // .ObserveOn(RxApp.MainThreadScheduler)
- // .Subscribe(x =>
- // {
- // CurrentStatus = $"CoinJoin will auto-start in this is a very long message: {(DateTime.Now - coinJoinManager.WhenWalletCanStartAutoCoinJoin(wallet)):mm\\:ss}";
- //
- //
- //
- // });
+ Observable.Interval(TimeSpan.FromSeconds(1))
+ .ObserveOn(RxApp.MainThreadScheduler)
+ .Subscribe(x =>
+ {
+ CurrentStatus = $"CoinJoin will auto-start in this is a very long message: {(DateTime.Now - coinJoinManager.WhenWalletCanStartAutoCoinJoin(wallet)):mm\\:ss}";
+
+
+
+ });
}
}
\ No newline at end of file

Fix scrolling text control