LadderWindowFactory accidentally lost an ObserveOnDispatcher()

This commit is contained in:
John Colvin committed 2018-04-13 14:34:49 -04:00
1 parent 3c51b091b9
commit d7186b7052
1 file changed
+2 -2
@@ -17,7 +17,7 @@ namespace bts.shell {
readonly IBus _bus;
readonly IWindowManager _wm;
readonly OrdersModel _orders_model;
readonly int _max_ladders_open = 50;
readonly int _max_ladders_open;
IReadOnlyDictionary<uint, SecurityMD> _securities = new Dictionary<uint, SecurityMD>();
public LadderWindowFactory(IShellModule owner, IBus bus, IWindowManager wm, OrdersModel orders_model)
@@ -30,7 +30,7 @@ namespace bts.shell {
(int)window_props.ladder.max_total_open : 50;
_dispose = Disposable.Create(
bus.subscribe(SparkTags.SecuritiesTag).Subscribe(s => _securities = s),
bus.subscribe(SparkTags.ShowLadderTag).Subscribe(s => show_windows(new[] { s })),
bus.subscribe(SparkTags.ShowLadderTag).ObserveOnDispatcher().Subscribe(s => show_windows(new[] { s })),
bus.subscribe(SparkTags.ShowLaddersTag).ObserveOnDispatcher().Subscribe(show_windows)
);
}