mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Merge pull request #665 from thopiekar/master-code-fixes
Fixing small issues in the code
This commit is contained in:
commit
e4effc1236
16 changed files with 25 additions and 45 deletions
|
@ -19,7 +19,6 @@ import threading
|
|||
import platform
|
||||
import glob
|
||||
import time
|
||||
import os
|
||||
import os.path
|
||||
import sys
|
||||
from UM.Extension import Extension
|
||||
|
@ -60,7 +59,7 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
|
|||
@pyqtProperty(float, notify = progressChanged)
|
||||
def progress(self):
|
||||
progress = 0
|
||||
for name, connection in self._printer_connections.items():
|
||||
for printer_name, connection in self._printer_connections.items():
|
||||
progress += connection.progress
|
||||
|
||||
return progress / len(self._printer_connections)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue