From e31b4f36e2b0223ecbbcc4e71eb95887445141e9 Mon Sep 17 00:00:00 2001
From: Jonathan Harris <jonathan@marginal.org.uk>
Date: Sat, 13 Jan 2018 11:01:48 +0000
Subject: [PATCH] Send location to Inara at startup

---
 plugins/inara.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/inara.py b/plugins/inara.py
index cbd55572..4c147498 100644
--- a/plugins/inara.py
+++ b/plugins/inara.py
@@ -242,7 +242,7 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
                 this.shipswap = False
 
             # Update location
-            if (entry['event'] == 'Location' or this.newuser) and system:
+            if (entry['event'] in ['StartUp', 'Location'] or this.newuser) and system:
                 this.undocked = False
                 add_event('setCommanderTravelLocation', entry['timestamp'],
                           OrderedDict([