From 21447d32e5eebfa5ef0cbb53180d0c83da76894c Mon Sep 17 00:00:00 2001 From: John Colvin Date: Wed, 14 Jun 2023 09:44:42 -0400 Subject: [PATCH] fix (vs ui): Only log 'is_dirty' changes for editable cols --- .../spark/AW2/ViewModel/Grid/VolSurfaceCellVM.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/client/spark/AW2/ViewModel/Grid/VolSurfaceCellVM.cs b/src/client/spark/AW2/ViewModel/Grid/VolSurfaceCellVM.cs index ce223e54e..55d13fc3c 100644 --- a/src/client/spark/AW2/ViewModel/Grid/VolSurfaceCellVM.cs +++ b/src/client/spark/AW2/ViewModel/Grid/VolSurfaceCellVM.cs @@ -26,13 +26,13 @@ namespace mbts.spark { _refresh = new(_is_dirty.refresh); _committed_value.Changed += on_committed_changed; _candidate_value.Changed += on_candidate_changed; - _is_dirty.Changed += (o, n) => { - Log.assert(o != n); - // TODO: John, this was logged too many times - // Log.Ui.info( - // $"VolSurface '{expiration}.{column}' is_dirty changed to {n}. " + - // $"commited: {committed_value}; candidate: {candidate_value}"); - }; + if (column.type.is_editable()) { + _is_dirty.Changed += (o, n) => { + Log.Ui.info( + $"VolSurface '{expiration}.{column}' is_dirty changed to {n}. " + + $"commited: {committed_value}; candidate: {candidate_value}"); + }; + } void on_committed_changed(object? oldval, object? newval) => _is_dirty.refresh();