Fix "transfered" → "transferred" spelling
This commit is contained in:
parent
b0cf708246
commit
c16731b239
2
TODO.md
2
TODO.md
|
@ -1,13 +1,11 @@
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
|
|
||||||
- Make dark bar extend down pane
|
- Make dark bar extend down pane
|
||||||
- Verify default size
|
- Verify default size
|
||||||
|
|
||||||
## Media
|
## Media
|
||||||
|
|
||||||
- Clean up gui test md
|
- Clean up gui test md
|
||||||
- Send the monitor PR
|
|
||||||
- nio ClientTimeout
|
- nio ClientTimeout
|
||||||
|
|
||||||
- Handle set avatar upload errors
|
- Handle set avatar upload errors
|
||||||
|
|
|
@ -257,14 +257,14 @@ class MatrixClient(nio.AsyncClient):
|
||||||
upload_item = Upload(item_uuid, task, monitor, path, total_size=size)
|
upload_item = Upload(item_uuid, task, monitor, path, total_size=size)
|
||||||
self.models[Upload, room_id][str(item_uuid)] = upload_item
|
self.models[Upload, room_id][str(item_uuid)] = upload_item
|
||||||
|
|
||||||
def on_transfered(transfered: int) -> None:
|
def on_transferred(transferred: int) -> None:
|
||||||
upload_item.uploaded = transfered
|
upload_item.uploaded = transferred
|
||||||
|
|
||||||
def on_speed_changed(speed: float) -> None:
|
def on_speed_changed(speed: float) -> None:
|
||||||
upload_item.speed = speed
|
upload_item.speed = speed
|
||||||
upload_item.time_left = monitor.remaining_time
|
upload_item.time_left = monitor.remaining_time
|
||||||
|
|
||||||
monitor.on_transfered = on_transfered
|
monitor.on_transferred = on_transferred
|
||||||
monitor.on_speed_changed = on_speed_changed
|
monitor.on_speed_changed = on_speed_changed
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user