From b62d4cb2ddb41718700b1165801c02e120b6523c Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Tue, 24 Jan 2023 01:46:52 +0300 Subject: [PATCH] Replace usage of monitor.system with monitor.state['SystemName'] to work with latest EDMarketConnector version --- SpanshRouter/SpanshRouter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpanshRouter/SpanshRouter.py b/SpanshRouter/SpanshRouter.py index 88deeb1..23b3f09 100644 --- a/SpanshRouter/SpanshRouter.py +++ b/SpanshRouter/SpanshRouter.py @@ -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() @@ -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()