diff options
author | Micah Lee <micah@micahflee.com> | 2021-04-30 14:12:41 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2021-04-30 14:12:41 -0700 |
commit | 47e02d781a5fb348fe2fb728300a73e3de37dfca (patch) | |
tree | 86ff44194a7ed9b1d2384d06eba5d52b36f505a3 /desktop | |
parent | b51c0ee046b00cc99d8e0cdc147039521c815be4 (diff) | |
download | onionshare-47e02d781a5fb348fe2fb728300a73e3de37dfca.tar.gz onionshare-47e02d781a5fb348fe2fb728300a73e3de37dfca.zip |
If a text message is received, save it in the ReceiveModeRequest object, and add includes_text=True to REQUEST_STARTED
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/src/onionshare/tab/mode/history.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop/src/onionshare/tab/mode/history.py b/desktop/src/onionshare/tab/mode/history.py index 10606c85..ffd96248 100644 --- a/desktop/src/onionshare/tab/mode/history.py +++ b/desktop/src/onionshare/tab/mode/history.py @@ -277,6 +277,12 @@ class ReceiveHistoryItem(HistoryItem): self.started = datetime.now() self.status = HistoryItem.STATUS_STARTED + self.common.log( + "ReceiveHistoryItem", + "__init__", + f"id={self.id} content_length={self.content_length}", + ) + # Label self.label = QtWidgets.QLabel( strings._("gui_all_modes_transfer_started").format( @@ -318,6 +324,12 @@ class ReceiveHistoryItem(HistoryItem): Using the progress from Web, update the progress bar and file size labels for each file """ + # self.common.log( + # "ReceiveHistoryItem", + # "update", + # f"id={self.id} data[action]={data['action']} files={list(self.files)}", + # ) + if data["action"] == "progress": total_uploaded_bytes = 0 for filename in data["progress"]: |