Commit 122631bc authored by Guillaume Seguin's avatar Guillaume Seguin

WIP #575: call // actions from wx thread

parent 0be26f15
...@@ -1687,14 +1687,14 @@ Printrun. If not, see <http://www.gnu.org/licenses/>.""" ...@@ -1687,14 +1687,14 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
command = command[1] command = command[1]
if command == "pause": if command == "pause":
if not self.paused: if not self.paused:
self.pause() wx.CallAfter(lambda: self.pause())
return True return True
elif command == "resume": elif command == "resume":
if self.paused: if self.paused:
self.pause() wx.CallAfter(lambda: self.pause())
return True return True
elif command == "disconnect": elif command == "disconnect":
self.do_disconnect(None) wx.CallAfter(lambda: self.disconnect())
return True return True
return False return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment