Skip to content

Commit

Permalink
Replace usage of monitor.system with monitor.state['SystemName'] to w…
Browse files Browse the repository at this point in the history
…ork with latest EDMarketConnector version
  • Loading branch information
norohind committed Jan 23, 2023
1 parent 534f9c9 commit b62d4cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SpanshRouter/SpanshRouter.py
Expand Up @@ -160,7 +160,7 @@ def show_plot_gui(self, show=True):
self.csv_route_btn.grid_remove()
self.source_ac.grid()
# Prefill the "Source" entry with the current system
self.source_ac.set_text(monitor.system if monitor.system is not None else "Source System", monitor.system is None)
self.source_ac.set_text(monitor.state['SystemName'] if monitor.state['SystemName'] is not None else "Source System", monitor.state['SystemName'] is None)
self.dest_ac.grid()
self.range_entry.grid()
self.efficiency_slider.grid()
Expand Down Expand Up @@ -597,7 +597,7 @@ def plot_route(self):
self.jumps_left += waypoint["jumps"]
self.enable_plot_gui(True)
self.show_plot_gui(False)
self.offset = 1 if self.route[0][0] == monitor.system else 0
self.offset = 1 if self.route[0][0] == monitor.state['SystemName'] else 0
self.next_stop = self.route[self.offset][0]
self.copy_waypoint()
self.update_gui()
Expand Down

0 comments on commit b62d4cb

Please sign in to comment.