Update navs on all slow and fast charts, only default the fast chart on switch
parent
ed868f6246
commit
cf11e8d7d8
|
@ -280,7 +280,7 @@ class GodWidget(QWidget):
|
||||||
# last had the xlast in view, if so then shift so it's
|
# last had the xlast in view, if so then shift so it's
|
||||||
# still in view, if the user was viewing history then
|
# still in view, if the user was viewing history then
|
||||||
# do nothing yah?
|
# do nothing yah?
|
||||||
# chart.default_view()
|
self.rt_linked.chart.default_view()
|
||||||
|
|
||||||
# if a history chart instance is already up then
|
# if a history chart instance is already up then
|
||||||
# set the search widget as its sidepane.
|
# set the search widget as its sidepane.
|
||||||
|
@ -293,9 +293,15 @@ class GodWidget(QWidget):
|
||||||
# **AFTER** applying the search bar as a sidepane
|
# **AFTER** applying the search bar as a sidepane
|
||||||
# to the newly switched to symbol.
|
# to the newly switched to symbol.
|
||||||
await trio.sleep(0)
|
await trio.sleep(0)
|
||||||
pp_nav = self.rt_linked.mode.current_pp.nav
|
|
||||||
|
# TODO: probably stick this in some kinda `LooknFeel` API?
|
||||||
|
for tracker in self.rt_linked.mode.trackers.values():
|
||||||
|
pp_nav = tracker.nav
|
||||||
|
if tracker.live_pp.size:
|
||||||
pp_nav.show()
|
pp_nav.show()
|
||||||
pp_nav.hide_info()
|
pp_nav.hide_info()
|
||||||
|
else:
|
||||||
|
pp_nav.hide()
|
||||||
|
|
||||||
# set window titlebar info
|
# set window titlebar info
|
||||||
symbol = self.rt_linked.symbol
|
symbol = self.rt_linked.symbol
|
||||||
|
|
Loading…
Reference in New Issue