1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-18 18:07:37 +03:00

Suits: Set edmcName in CurrentSuit from CAPI, and ensure displayed

This commit is contained in:
Athanasius 2021-05-27 17:28:52 +01:00
parent e58ee3dbce
commit c48fe4cdfb
2 changed files with 5 additions and 0 deletions

View File

@ -983,6 +983,8 @@ class AppWindow(object):
if play_sound and play_bad:
hotkeymgr.play_bad()
self.update_suit_text()
self.suit_show_if_set()
self.cooldown()
def journal_event(self, event): # noqa: C901, CCR001 # Currently not easily broken up.

View File

@ -688,6 +688,9 @@ class Session(object):
else:
monitor.state['Suits'] = suits
# We need to be setting our edmcName for all suits
monitor.state['SuitCurrent']['edmcName'] = monitor.suit_sane_name(monitor.state['SuitCurrent']['locName'])
if (suit_loadouts := data.get('loadouts')) is None:
logger.warning('CAPI data had "suit" but no (suit) "loadouts"')