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:
parent
e58ee3dbce
commit
c48fe4cdfb
@ -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.
|
||||
|
@ -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"')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user