mirror of
https://github.com/ciromattia/kcc
synced 2026-10-01 15:12:32 +00:00
Optimization of ProgressThread
This commit is contained in:
+2
-2
@@ -321,7 +321,7 @@ class WorkerThread(QtCore.QThread):
|
|||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
GUIMain.progress.content = ''
|
GUIMain.progress.content = ''
|
||||||
self.progress.stop()
|
GUIMain.progress.stop()
|
||||||
GUIMain.needClean = True
|
GUIMain.needClean = True
|
||||||
self.emit(QtCore.SIGNAL("hideProgressBar"))
|
self.emit(QtCore.SIGNAL("hideProgressBar"))
|
||||||
self.emit(QtCore.SIGNAL("addMessage"), '<b>Conversion interrupted.</b>', 'error')
|
self.emit(QtCore.SIGNAL("addMessage"), '<b>Conversion interrupted.</b>', 'error')
|
||||||
@@ -509,7 +509,7 @@ class WorkerThread(QtCore.QThread):
|
|||||||
for item in outputPath:
|
for item in outputPath:
|
||||||
GUIMain.completedWork[os.path.basename(item).encode('utf-8')] = item.encode('utf-8')
|
GUIMain.completedWork[os.path.basename(item).encode('utf-8')] = item.encode('utf-8')
|
||||||
GUIMain.progress.content = ''
|
GUIMain.progress.content = ''
|
||||||
self.progress.stop()
|
GUIMain.progress.stop()
|
||||||
self.emit(QtCore.SIGNAL("hideProgressBar"))
|
self.emit(QtCore.SIGNAL("hideProgressBar"))
|
||||||
GUIMain.needClean = True
|
GUIMain.needClean = True
|
||||||
self.emit(QtCore.SIGNAL("addMessage"), '<b>All jobs completed.</b>', 'info')
|
self.emit(QtCore.SIGNAL("addMessage"), '<b>All jobs completed.</b>', 'info')
|
||||||
|
|||||||
Reference in New Issue
Block a user