mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-05 18:03:17 +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):
|
def journal_event(self, event):
|
||||||
while True:
|
while True:
|
||||||
entry = monitor.get_entry()
|
entry = monitor.get_entry()
|
||||||
if entry is None:
|
|
||||||
return
|
|
||||||
system_changed = monitor.system and self.system['text'] != monitor.system
|
system_changed = monitor.system and self.system['text'] != monitor.system
|
||||||
station_changed = monitor.station and self.station['text'] != monitor.station
|
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 '')
|
self.station['text'] = monitor.station or (EDDB.system(monitor.system) and self.STATION_UNDOCKED or '')
|
||||||
if system_changed or station_changed:
|
if system_changed or station_changed:
|
||||||
self.status['text'] = ''
|
self.status['text'] = ''
|
||||||
|
if entry is None:
|
||||||
|
return
|
||||||
|
|
||||||
plug.notify_journal_entry(monitor.cmdr, monitor.system, monitor.station, entry)
|
plug.notify_journal_entry(monitor.cmdr, monitor.system, monitor.station, entry)
|
||||||
|
|
||||||
|
@ -164,6 +164,7 @@ class EDLogs(FileSystemEventHandler):
|
|||||||
except:
|
except:
|
||||||
if __debug__:
|
if __debug__:
|
||||||
print 'Invalid journal entry "%s"' % repr(line)
|
print 'Invalid journal entry "%s"' % repr(line)
|
||||||
|
self.root.event_generate('<<JournalEvent>>', when="tail") # Generate null event to update the display at start
|
||||||
else:
|
else:
|
||||||
loghandle = None
|
loghandle = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user