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
diff options
context:
space:
mode:
authornickthetait <tait@alephobjects.com>2016-05-18 23:17:07 +0300
committernickthetait <tait@alephobjects.com>2016-05-18 23:17:07 +0300
commit5ec943e04f134897dcdcfb9d68dcc2f679384f56 (patch)
tree48d0ae3684429c2959387e0859ca45ba0254ce83
parentb996c6e01af085643430f10fb662e59b4c2282db (diff)
Firmware install: display filename instead of printer name
-rw-r--r--Cura/gui/firmwareInstall.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/Cura/gui/firmwareInstall.py b/Cura/gui/firmwareInstall.py
index 8c27f2c55e..d80fad7f31 100644
--- a/Cura/gui/firmwareInstall.py
+++ b/Cura/gui/firmwareInstall.py
@@ -5,6 +5,7 @@ import wx
import threading
import sys
import time
+import textwrap
from Cura.util import serialWrapper as serial
@@ -149,12 +150,12 @@ class InstallFirmwareDialog(wx.Dialog):
wx.MessageBox(_("I am sorry, but Cura does not ship with a default firmware for your machine configuration."), _("Firmware update"), wx.OK | wx.ICON_ERROR)
return False
self.success = False
- printer_name = profile.getMachineName(self._machineIndex)
- text = "About to update firmware for {}\n".format(printer_name)
firmware_file_name = os.path.basename(self.filename)
- if firmware_file_name is not None:
- text += "with file '{}'\n".format(firmware_file_name)
- self.updateLabel(_(text))
+ text = '''\
+ About to update firmware with file:
+ {}
+ This process cannot be interrupted once started.'''.format(firmware_file_name)
+ self.updateLabel(_(textwrap.dedent(text)))
self.ShowModal()
# Creating a MessageBox in a separate thread while main thread is locked inside a ShowModal