summaryrefslogtreecommitdiff
path: root/onionshare_gui
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2019-09-08 09:35:44 -0700
committerMicah Lee <micah@micahflee.com>2019-09-08 09:35:44 -0700
commit3f7c4a4e2503c26dabc37f656c9875b64c63a0a6 (patch)
tree3703319bfe1b9b37dfc6d7ec3950bdb99a73505d /onionshare_gui
parentc2011e6915330910631e11695105cf83b88eb2cb (diff)
downloadonionshare-3f7c4a4e2503c26dabc37f656c9875b64c63a0a6.tar.gz
onionshare-3f7c4a4e2503c26dabc37f656c9875b64c63a0a6.zip
Remove method from IndividualFileHistoryItem, and only display these widgets on 200 and 404 requests, not all of the others
Diffstat (limited to 'onionshare_gui')
-rw-r--r--onionshare_gui/mode/history.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/onionshare_gui/mode/history.py b/onionshare_gui/mode/history.py
index 797950ab..2fd7cddb 100644
--- a/onionshare_gui/mode/history.py
+++ b/onionshare_gui/mode/history.py
@@ -354,7 +354,6 @@ class IndividualFileHistoryItem(HistoryItem):
self.path = path
self.total_bytes = 0
self.downloaded_bytes = 0
- self.method = data['method']
self.started = time.time()
self.started_dt = datetime.fromtimestamp(self.started)
self.status = HistoryItem.STATUS_STARTED
@@ -364,8 +363,7 @@ class IndividualFileHistoryItem(HistoryItem):
# Labels
self.timestamp_label = QtWidgets.QLabel(self.started_dt.strftime("%b %d, %I:%M%p"))
self.timestamp_label.setStyleSheet(self.common.css['history_individual_file_timestamp_label'])
- self.request_label = QtWidgets.QLabel("{} {}".format(self.method, self.path))
- self.request_label.setStyleSheet(self.common.css['history_individual_file_request_label'])
+ self.path_label = QtWidgets.QLabel("{}".format(self.path))
self.status_code_label = QtWidgets.QLabel()
# Progress bar
@@ -379,7 +377,7 @@ class IndividualFileHistoryItem(HistoryItem):
# Text layout
labels_layout = QtWidgets.QHBoxLayout()
labels_layout.addWidget(self.timestamp_label)
- labels_layout.addWidget(self.request_label)
+ labels_layout.addWidget(self.path_label)
labels_layout.addWidget(self.status_code_label)
labels_layout.addStretch()