Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim-plugins
Commits
37f7f485
Commit
37f7f485
authored
Mar 30, 2017
by
Philipp Hörist
Browse files
[omemo] Replace 'Upload' with 'Download'
This happend due to copy/paste from httpupload
parent
a412b3f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
omemo/
up
load_progress_dialog.ui
→
omemo/
down
load_progress_dialog.ui
View file @
37f7f485
File moved
omemo/file_decryption.py
View file @
37f7f485
...
...
@@ -184,7 +184,7 @@ class Download:
while
True
:
try
:
if
self
.
event
.
isSet
():
raise
Up
loadAbortedException
raise
Down
loadAbortedException
temp
=
get_request
.
read
(
10000
)
GLib
.
idle_add
(
self
.
progressbar
.
update_progress
,
len
(
temp
),
size
)
...
...
@@ -196,8 +196,8 @@ class Download:
stream
.
write
(
temp
)
else
:
return
stream
except
Up
loadAbortedException
as
error
:
log
.
info
(
'
Up
load Aborted'
)
except
Down
loadAbortedException
as
error
:
log
.
info
(
'
Down
load Aborted'
)
errormsg
=
error
except
URLError
as
error
:
log
.
exception
(
'URLError'
)
...
...
@@ -238,7 +238,7 @@ class ProgressWindow:
self
.
plugin
=
plugin
self
.
event
=
event
self
.
xml
=
gtkgui_helpers
.
get_gtk_builder
(
self
.
plugin
.
local_file_path
(
'
up
load_progress_dialog.ui'
))
self
.
plugin
.
local_file_path
(
'
down
load_progress_dialog.ui'
))
self
.
dialog
=
self
.
xml
.
get_object
(
'progress_dialog'
)
self
.
dialog
.
set_transient_for
(
window
)
self
.
label
=
self
.
xml
.
get_object
(
'label'
)
...
...
@@ -267,6 +267,6 @@ class ProgressWindow:
self
.
event
.
set
()
class
Up
loadAbortedException
(
Exception
):
class
Down
loadAbortedException
(
Exception
):
def
__str__
(
self
):
return
_
(
'
Up
load Aborted'
)
return
_
(
'
Down
load Aborted'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment