Skip to content

Commit

Permalink
Fix trying to draw before initializing plotter
Browse files Browse the repository at this point in the history
  • Loading branch information
kangalio committed Oct 10, 2019
1 parent 7707001 commit 268647f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def setup_ui(self, layout):
self.refresh_graphs()

def refresh_graphs(self):
self.plotter.draw(self.etterna_xml, self.replays_dir)
if not plotter is None:
self.plotter.draw(self.etterna_xml, self.replays_dir)

def display_info_box(self):
msgbox = QMessageBox()
Expand Down

0 comments on commit 268647f

Please sign in to comment.