mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Display current location on startup
This commit is contained in:
parent
7f2cf3a286
commit
b21e181ab1
@ -484,8 +484,6 @@ class AppWindow:
|
||||
def journal_event(self, event):
|
||||
while True:
|
||||
entry = monitor.get_entry()
|
||||
if entry is None:
|
||||
return
|
||||
system_changed = monitor.system and self.system['text'] != monitor.system
|
||||
station_changed = monitor.station and self.station['text'] != monitor.station
|
||||
|
||||
@ -495,6 +493,8 @@ class AppWindow:
|
||||
self.station['text'] = monitor.station or (EDDB.system(monitor.system) and self.STATION_UNDOCKED or '')
|
||||
if system_changed or station_changed:
|
||||
self.status['text'] = ''
|
||||
if entry is None:
|
||||
return
|
||||
|
||||
plug.notify_journal_entry(monitor.cmdr, monitor.system, monitor.station, entry)
|
||||
|
||||
|
@ -164,6 +164,7 @@ class EDLogs(FileSystemEventHandler):
|
||||
except:
|
||||
if __debug__:
|
||||
print 'Invalid journal entry "%s"' % repr(line)
|
||||
self.root.event_generate('<<JournalEvent>>', when="tail") # Generate null event to update the display at start
|
||||
else:
|
||||
loghandle = None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user