Call default view on symbol switch
parent
ed03d77e6e
commit
ff00993412
piker/ui
|
@ -240,6 +240,12 @@ class GodWidget(QWidget):
|
||||||
# resume feeds *after* rendering chart view asap
|
# resume feeds *after* rendering chart view asap
|
||||||
chart.resume_all_feeds()
|
chart.resume_all_feeds()
|
||||||
|
|
||||||
|
# TODO: we need a check to see if the chart
|
||||||
|
# last had the xlast in view, if so then shift so it's
|
||||||
|
# still in view, if the user was viewing history then
|
||||||
|
# do nothing yah?
|
||||||
|
chart.default_view()
|
||||||
|
|
||||||
self.linkedsplits = linkedsplits
|
self.linkedsplits = linkedsplits
|
||||||
symbol = linkedsplits.symbol
|
symbol = linkedsplits.symbol
|
||||||
if symbol is not None:
|
if symbol is not None:
|
||||||
|
@ -904,7 +910,7 @@ class ChartPlotWidget(pg.PlotWidget):
|
||||||
brange = l, lbar, rbar, r = self.bars_range()
|
brange = l, lbar, rbar, r = self.bars_range()
|
||||||
|
|
||||||
marker_pos, l1_len = self.pre_l1_xs()
|
marker_pos, l1_len = self.pre_l1_xs()
|
||||||
end = xlast + l1_len
|
end = xlast + l1_len + 1
|
||||||
|
|
||||||
if (
|
if (
|
||||||
rbar < 0
|
rbar < 0
|
||||||
|
|
Loading…
Reference in New Issue