sending fix

This commit is contained in:
ingvar1995 2016-03-21 23:51:29 +03:00
parent bfbc82a9a3
commit 1897fa762a
3 changed files with 2 additions and 7 deletions

View file

@ -241,8 +241,6 @@ class FileTransferItem(QtGui.QListWidget):
@QtCore.Slot(int, float)
def update(self, state, progress):
self.pb.setValue(int(progress * 100))
#self.pb.repaint()
print state, progress
if state == TOX_FILE_TRANSFER_STATE['CANCELED']:
self.setStyleSheet('QListWidget { background-color: red; }')
self.cancel.setVisible(False)