Update icons from pps at order mode startup
parent
9c60aa1928
commit
4afafce297
|
@ -665,15 +665,9 @@ async def open_order_mode(
|
||||||
)
|
)
|
||||||
order_pane.set_accounts(list(trackers.keys()))
|
order_pane.set_accounts(list(trackers.keys()))
|
||||||
|
|
||||||
# set all entries as unavailable at startup and then fill out
|
# update pp icons
|
||||||
# positions and ready icons
|
|
||||||
# order_pane.update_accounts_icon('unavailable')
|
|
||||||
|
|
||||||
for name, tracker in trackers.items():
|
for name, tracker in trackers.items():
|
||||||
if tracker.live_pp.size > 0:
|
order_pane.update_account_icons({name: tracker.live_pp})
|
||||||
order_pane.update_accounts_icon('long_pp', [name])
|
|
||||||
elif tracker.live_pp.size < 0:
|
|
||||||
order_pane.update_accounts_icon('short_pp', [name])
|
|
||||||
|
|
||||||
# top level abstraction which wraps all this crazyness into
|
# top level abstraction which wraps all this crazyness into
|
||||||
# a namespace..
|
# a namespace..
|
||||||
|
|
Loading…
Reference in New Issue