diff options
Diffstat (limited to 'Cura/gui')
-rw-r--r-- | Cura/gui/app.py | 2 | ||||
-rw-r--r-- | Cura/gui/mainWindow.py | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/Cura/gui/app.py b/Cura/gui/app.py index 7dff8e9d49..ce167b26a3 100644 --- a/Cura/gui/app.py +++ b/Cura/gui/app.py @@ -90,7 +90,7 @@ class CuraApp(wx.App): sock.bind(("127.0.0.1", port)) while True: data, addr = sock.recvfrom(2048) - self.mainWindow.OnDropFiles(data.split('\0')) + wx.callAfter(self.mainWindow.OnDropFiles, data.split('\0')) except: pass diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index 2c49983428..efd81163b4 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -395,8 +395,6 @@ class mainWindow(wx.Frame): prefDialog.Raise() def OnDropFiles(self, files): - if len(files) > 0: - self.updateProfileToAllControls() self.scene.loadFiles(files) def OnModelMRU(self, e): |