chiark / gitweb /
Retry publishing after 1 second, hoping that the renderer has ran then.
authordaid <daid303@gmail.com>
Wed, 28 Aug 2013 06:10:35 +0000 (08:10 +0200)
committerdaid <daid303@gmail.com>
Wed, 28 Aug 2013 06:10:35 +0000 (08:10 +0200)
Cura/gui/sceneView.py
Cura/gui/tools/youmagineGui.py

index cc3bbe4bc9677e40c07522c2a4c15339c85a547b..5faaba102351bfa28db32d61e47b46bbdcc747a2 100644 (file)
@@ -103,7 +103,7 @@ class SceneView(openglGui.glGuiPanel):
                self.viewSelection = openglGui.glComboButton(self, 'View mode', [7,19,11,15,23], ['Normal', 'Overhang', 'Transparent', 'X-Ray', 'Layers'], (-1,0), self.OnViewChange)
                self.layerSelect = openglGui.glSlider(self, 10000, 0, 1, (-1,-2), lambda : self.QueueRefresh())
 
-               self.youMagineButton = openglGui.glButton(self, 26, 'YouMagine upload', (2,0), lambda button: youmagineGui.youmagineManager(self.GetTopLevelParent(), self._scene))
+               self.youMagineButton = openglGui.glButton(self, 26, 'Share on YouMagine', (2,0), lambda button: youmagineGui.youmagineManager(self.GetTopLevelParent(), self._scene))
                self.youMagineButton.setDisabled(True)
 
                self.notification = openglGui.glNotification(self, (0, 0))
index b027540e3611c7fd08ed8c2702a1b3398f46f24c..d62b25a7f33ccfbef3a3c6491e92028e9945a662 100644 (file)
@@ -156,7 +156,10 @@ class youmagineManager(object):
 
                if publish:
                        wx.CallAfter(self._indicatorWindow.showBusy, 'Publishing design...')
-                       self._ym.publishDesign(id)
+                       if not self._ym.publishDesign(id):
+                               #If publishing failed try again after 1 second, this might help when you need to wait for the renderer. But does not always work.
+                               time.sleep(1)
+                               self._ym.publishDesign(id)
                wx.CallAfter(self._indicatorWindow.Hide)
 
                webbrowser.open(self._ym.viewUrlForDesign(id))