From 64e5dcf0cbd5dfa16e6c63d9ae7263b86cf46342 Mon Sep 17 00:00:00 2001 From: Michael K Williams Date: Thu, 30 Apr 2026 15:43:56 +0100 Subject: [PATCH] Revert "Synthesize Loadout event for plugins after catch-up replay" This reverts commit f4245a06696a34f2b332a6e92fbe3eff22c9fd6c. --- monitor.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/monitor.py b/monitor.py index 67df7174..b28adb44 100644 --- a/monitor.py +++ b/monitor.py @@ -409,17 +409,6 @@ class EDLogs(FileSystemEventHandler): self.event_queue.put(json.dumps(entry, separators=(', ', ':'))) - # If state['Modules'] is populated from catch-up replay (e.g. a - # Loadout event was in the journal), synthesize a Loadout event so - # plugins see the current ship loadout on startup. Without this, - # plugins that wait for a Loadout event (like Inara's shipswap - # handler) will never receive one after an EDMC restart. - if self.state['Modules']: - loadout_entry = self.ship(timestamped=True) - if loadout_entry: - logger.info("Synthesizing Loadout event for plugins (state has modules from catch-up)") - self.event_queue.put(json.dumps(loadout_entry, separators=(', ', ':'))) - else: # Generate null event to update the display (with possibly out-of-date info) self.event_queue.put(None)