pnl symbols filter dropdown is populated with new 'get_all_display_symbols' method
This commit is contained in:
1 parent
d8683151fe
commit
36212a8cf7
1 file changed
+9
-1
@@ -118,7 +118,15 @@ namespace bts.shell.pnl {
|
||||
).FilterWithRaw(filter_src, PNLRowData.key_fn, null)
|
||||
.OnDispatcher()
|
||||
.Subscribe(_update),
|
||||
_symbols_source(pnl_source).OnDispatcher().Subscribe(symbol_filter_items_observer),
|
||||
// Note: the symbol filter items don't really need to be an IObservable
|
||||
// (the symbol items used to be extracted from the IObservable pnl_source).
|
||||
// It is only an IObservable now due to legacy; the filter was designed to observe incremental updates.
|
||||
// This is can be easily changed if need be.
|
||||
Observable.Return(
|
||||
TableUpdate<string, string>.mk_empty(sym => sym).with_added(
|
||||
SecurityHelper.get_all_display_symbols()))
|
||||
.OnDispatcher()
|
||||
.Subscribe(symbol_filter_items_observer),
|
||||
Disposable.Create(() => {
|
||||
foreach (var f in _all_filters)
|
||||
f.filter_changed -= _refresh_filter.execute;
|
||||
|
||||
Reference in new issue
Block a user