mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 15:45:52 +08:00
Progress of firmware update now works correctly
This commit is contained in:
parent
cc9e67533c
commit
5133d0b2a1
@ -9,7 +9,7 @@ Rectangle
|
|||||||
|
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
text: "Updating firmware"
|
text: manager.progress == 0 ? "Starting firmware update, may take a while.": manager.progress > 99 ? "Firmware update completed.": "Updating firmware."
|
||||||
}
|
}
|
||||||
ProgressBar
|
ProgressBar
|
||||||
{
|
{
|
||||||
|
@ -410,7 +410,8 @@ class PrinterConnection(SignalEmitter):
|
|||||||
progressChanged = Signal()
|
progressChanged = Signal()
|
||||||
|
|
||||||
def setProgress(self, progress,max_progress = 100):
|
def setProgress(self, progress,max_progress = 100):
|
||||||
self._progress = progress
|
self._progress = progress / max_progress * 100 #Convert to scale of 0-100
|
||||||
|
#self._progress = progress
|
||||||
self.progressChanged.emit(self._progress, self._serial_port)
|
self.progressChanged.emit(self._progress, self._serial_port)
|
||||||
|
|
||||||
def cancelPrint(self):
|
def cancelPrint(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user