Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Cura
diff options
context:
space:
mode:
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>2015-09-17 23:57:30 +0300
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>2015-09-17 23:57:30 +0300
commit1815eea2e9cfbac6ee61763f6f6a9d3be668e07f (patch)
treeb01ab8e1b3ae679b3e6976424e58e7069bdf6260 /Cura
parent77049b6a0d49f9c47a3d7f7090d1ea6582f070e1 (diff)
Remove extra comma at the end of the print window title when in error state
The \n is replaced by , for the title, but if there is no temperature/bed values being printed, then we get an extra comma at the end. Fixes T245
Diffstat (limited to 'Cura')
-rw-r--r--Cura/gui/printWindow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Cura/gui/printWindow.py b/Cura/gui/printWindow.py
index 6f1f484af6..a50e06db38 100644
--- a/Cura/gui/printWindow.py
+++ b/Cura/gui/printWindow.py
@@ -403,7 +403,7 @@ class printWindowPlugin(wx.Frame):
if self._infoText is not None:
self._infoText.SetLabel(info)
else:
- self.SetTitle(info.replace('\n', ', '))
+ self.SetTitle(info.replace('\n', ', ').strip().strip(','))
if isPrinting != self._isPrinting:
self._isPrinting = isPrinting
preventComputerFromSleeping(self, self._isPrinting)
@@ -939,7 +939,7 @@ class printWindowAdvanced(wx.Frame):
info += 'Temperature: %d' % (self._printerConnection.getTemperature(0))
if self._printerConnection.getBedTemperature() > 0:
info += ' Bed: %d' % (self._printerConnection.getBedTemperature())
- self.SetTitle(info.replace('\n', ', '))
+ self.SetTitle(info.replace('\n', ', ').strip().strip(','))
if isPrinting != self._isPrinting:
self._isPrinting = isPrinting
preventComputerFromSleeping(self, self._isPrinting)