summaryrefslogtreecommitdiff
path: root/onionshare_gui
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2018-10-25 21:13:16 -0700
committerMicah Lee <micah@micahflee.com>2018-10-25 21:13:16 -0700
commit6233487ecdaed7c4a678a01889703bfd0dec0787 (patch)
treed9aeebd8eabc5908e60a69560757cb19a66fcec0 /onionshare_gui
parent23a1ed9165324340024544679ac21e92d277c2e1 (diff)
downloadonionshare-6233487ecdaed7c4a678a01889703bfd0dec0787.tar.gz
onionshare-6233487ecdaed7c4a678a01889703bfd0dec0787.zip
Receive mode puts files in a directory based on the timestamp of the upload
Diffstat (limited to 'onionshare_gui')
-rw-r--r--onionshare_gui/onionshare_gui.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index 8c8e4e73..1e254f61 100644
--- a/onionshare_gui/onionshare_gui.py
+++ b/onionshare_gui/onionshare_gui.py
@@ -394,10 +394,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
mode.handle_request_upload_finished(event)
if event["type"] == Web.REQUEST_ERROR_DOWNLOADS_DIR_CANNOT_CREATE:
- Alert(self.common, strings._('error_cannot_create_downloads_dir').format(self.common.settings.get('downloads_dir')))
-
- if event["type"] == Web.REQUEST_ERROR_DOWNLOADS_DIR_NOT_WRITABLE:
- Alert(self.common, strings._('error_downloads_dir_not_writable').format(self.common.settings.get('downloads_dir')))
+ Alert(self.common, strings._('error_cannot_create_downloads_dir').format(event["data"]["receive_mode_dir"]))
if event["type"] == Web.REQUEST_OTHER:
if event["path"] != '/favicon.ico' and event["path"] != "/{}/shutdown".format(mode.web.shutdown_slug):