Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
a09eb377
Commit
a09eb377
authored
Apr 09, 2015
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust to notification name changes in the middleware
parent
f01b58d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sessions.py
blink/sessions.py
+3
-3
No files found.
blink/sessions.py
View file @
a09eb377
...
...
@@ -3798,15 +3798,15 @@ class FileTransfer(object):
else
:
self
.
_terminate
()
def
_NH_FileTransfer
Stream
HashProgress
(
self
,
notification
):
def
_NH_FileTransferHashProgress
(
self
,
notification
):
progress
=
int
(
notification
.
data
.
processed
*
100
/
notification
.
data
.
total
)
notification
.
center
.
post_notification
(
'FileTransferHashProgress'
,
sender
=
self
,
data
=
NotificationData
(
progress
=
progress
))
def
_NH_FileTransfer
Stream
Progress
(
self
,
notification
):
def
_NH_FileTransferProgress
(
self
,
notification
):
notification
.
center
.
post_notification
(
'FileTransferProgress'
,
sender
=
self
,
data
=
NotificationData
(
bytes
=
notification
.
data
.
transferred_bytes
,
total_bytes
=
notification
.
data
.
total_bytes
))
def
_NH_FileTransfer
StreamDidFinishTransfer
(
self
,
notification
):
def
_NH_FileTransfer
DidEnd
(
self
,
notification
):
if
self
.
direction
==
'incoming'
:
# filename could have changed
self
.
filename
=
os
.
path
.
splitext
(
notification
.
sender
.
file_selector
.
name
)[
0
]
...
...
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