refresh server status and overall speed in the status bar
(self)
| 282 | self.mainWindow.fileCount.setText("%i" % fc) |
| 283 | |
| 284 | def refreshServerStatus(self): |
| 285 | """ |
| 286 | refresh server status and overall speed in the status bar |
| 287 | """ |
| 288 | s = self.connector.statusServer() |
| 289 | if s.pause: |
| 290 | self.mainWindow.status.setText(_("paused")) |
| 291 | else: |
| 292 | self.mainWindow.status.setText(_("running")) |
| 293 | self.mainWindow.speed.setText(formatSpeed(s.speed)) |
| 294 | self.mainWindow.space.setText(formatSize(self.serverStatus["freespace"])) |
| 295 | self.mainWindow.actions["toggle_status"].setChecked(not s.pause) |
| 296 | |
| 297 | def refreshLog(self): |
| 298 | """ |
no test coverage detected