FIX: Orderbook quantity display fixed

This commit is contained in:
Mohammad Arham committed 2025-01-15 14:47:09 -05:00
1 parent 2e9347341b
commit edd3f6cbd6
3 files changed
+5 -2

No files matched your search

@@ -389,7 +389,7 @@ namespace mbts.spark {
}
void refresh_quantity_display() {
foreach (var row in _row_collection.all_rows) {
foreach (var row in _row_collection.GetAllRows()) {
if (_cached_securities.TryGetValue(row.security_key, out var smd)) {
row.quantity_display_settings = smd.quantity_display;
}
@@ -73,7 +73,8 @@ namespace bts.collections {
public IEnumerable<TRow> all_rows => _tree.all_rows;
public int Count => _rows.Count;
public int total_row_count => _tree.total_row_count;
public IEnumerable<TRow> GetAllRows(bool excludeFiltered = false) =>
_tree.GetAllRows(excludeFiltered);
public IDisposable defer_refresh() =>
_refresh.defer();
@@ -61,6 +61,8 @@ namespace bts.collections {
IEnumerable<INode<TRow>> _root_nodes =>
_filter == null ? _tree.RootNodes : _cached_filtered ?? (_cached_filtered = _tree.RootNodes.filtered(_filter).sorted_hard(_comparer));
public IEnumerable<TRow> GetAllRows(bool excludeFiltered = false) =>
excludeFiltered ? all_rows : _tree;
// collapse
public void collapse_row(TKey key) => _toggle_is_expanded(key, false);
public void collapse_all() => _toggle_is_expanded(false);