Skip to content

Commit

Permalink
Force the bound function to the gcode to run on update even if there …
Browse files Browse the repository at this point in the history
…is no gcode

This is needed to fix issue #775 which was causing a bug where the background image didn't behave correctly when there was no gcode file open because the file updateGcode function opts out if there is no file, but we need the refresh process to run
  • Loading branch information
BarbourSmith committed Oct 2, 2018
1 parent 5f4cc4c commit a7b1556
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions UIElements/gcodeCanvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def reloadGcode(self, *args):

filename = self.data.gcodeFile
if filename is "": #Blank the g-code if we're loading "nothing"
self.data.gcode = " "
self.data.gcode = ""
return

Expand Down

0 comments on commit a7b1556

Please sign in to comment.