From 3bb2025ea2599c1962fc7331fbf21c668db7d7d4 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Sun, 21 Aug 2022 13:20:59 -0400 Subject: [PATCH] fix (ladder): Make sure price-range 'busy' is flipped back to false Once the async price-range-shift op is completed Bugs (fixed): * Can't scroll beyond initial price range in orderbook ladder Cause: The LadderGridHost's price-range-shift 'busy' flag gets stuck to false --- src/client/spark/Modules/Trading/Ladder/View/LadderGridHost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/spark/Modules/Trading/Ladder/View/LadderGridHost.cs b/src/client/spark/Modules/Trading/Ladder/View/LadderGridHost.cs index 1f616841a..ede268acf 100644 --- a/src/client/spark/Modules/Trading/Ladder/View/LadderGridHost.cs +++ b/src/client/spark/Modules/Trading/Ladder/View/LadderGridHost.cs @@ -573,6 +573,7 @@ namespace mbts.spark { } busy = true; await dispatcher.InvokeAsync(ensure_tick_padding, DispatcherPriority.Background); + busy = false; void ensure_tick_padding() { if (_price_list is null || _settings is null) { @@ -601,7 +602,6 @@ namespace mbts.spark { _pending_price_list = new_pl; } _ordershost.refresh_orders(); - busy = false; } } }