Skip to content
Snippets Groups Projects
Commit a929c48f authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Replace 'Upload' with 'Download'

This happend due to copy/paste from httpupload
parent 8fe370d7
No related branches found
No related tags found
No related merge requests found
File moved
......@@ -196,7 +196,7 @@ class Download:
while True:
try:
if self.event.isSet():
raise UploadAbortedException
raise DownloadAbortedException
temp = get_request.read(10000)
gobject.idle_add(
self.progressbar.update_progress, len(temp), size)
......@@ -208,8 +208,8 @@ class Download:
stream.write(temp)
else:
return stream
except UploadAbortedException as error:
log.info('Upload Aborted')
except DownloadAbortedException as error:
log.info('Download Aborted')
errormsg = error
except urllib2.URLError as error:
log.exception('URLError')
......@@ -252,7 +252,7 @@ class ProgressWindow:
self.plugin = plugin
self.event = event
self.xml = gtkgui_helpers.get_gtk_builder(
self.plugin.local_file_path('upload_progress_dialog.ui'))
self.plugin.local_file_path('download_progress_dialog.ui'))
self.dialog = self.xml.get_object('progress_dialog')
self.dialog.set_transient_for(chat_control.parent_win.window)
self.label = self.xml.get_object('label')
......@@ -281,6 +281,6 @@ class ProgressWindow:
self.event.set()
class UploadAbortedException(Exception):
class DownloadAbortedException(Exception):
def __str__(self):
return _('Upload Aborted')
return _('Download Aborted')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment