From 51db2e75f7c3dfc325408b67c9a4e2a1c3cb557d Mon Sep 17 00:00:00 2001 From: Jake Norbut Date: Thu, 11 Apr 2019 10:10:12 -0500 Subject: [PATCH] PR suggestion - One RaisePropertyChanged call FTW! --- src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs b/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs index 5ba8ab8ee..b65d2949a 100644 --- a/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs +++ b/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs @@ -283,13 +283,12 @@ namespace mbts.spark { updated?.Invoke((old_order_tuple, order_tuple)); // terminal state if (old_order_tuple.order.is_non_terminal() != order_tuple.order.is_non_terminal()) { - RaisePropertyChanged(nameof(is_non_terminal)); // while we call refresh_is_at/detachable in the OrderBookRowCollection.update // on all the children of a modified row, we used to not call it on the row istelf, // which should of course be done here. This manifested via the very top parent in any // length of attachable orders *still* showing an attach icon after some descendant was // detached - RaisePropertyChanged(nameof(is_attachable), nameof(is_detachable)); + RaisePropertyChanged(nameof(is_non_terminal), nameof(is_attachable), nameof(is_detachable)); // this will update the cancel column in the mini ob cancel_command.TryRaiseCanExecuteChanged();