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
21086ea9
Commit
21086ea9
authored
Feb 03, 2016
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new notification when a blink session is created
parent
b36ebb63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
sessions.py
blink/sessions.py
+5
-0
No files found.
blink/sessions.py
View file @
21086ea9
...
@@ -423,6 +423,8 @@ class BlinkSession(QObject):
...
@@ -423,6 +423,8 @@ class BlinkSession(QObject):
def
__init__
(
self
):
def
__init__
(
self
):
super
(
BlinkSession
,
self
)
.
__init__
()
super
(
BlinkSession
,
self
)
.
__init__
()
self
.
_initialize
()
self
.
_initialize
()
notification_center
=
NotificationCenter
()
notification_center
.
post_notification
(
'BlinkSessionWasCreated'
,
sender
=
self
)
def
_initialize
(
self
,
reinitialize
=
False
):
def
_initialize
(
self
,
reinitialize
=
False
):
if
not
reinitialize
:
if
not
reinitialize
:
...
@@ -3539,6 +3541,9 @@ class BlinkFileTransfer(object):
...
@@ -3539,6 +3541,9 @@ class BlinkFileTransfer(object):
self
.
_uri
=
None
self
.
_uri
=
None
self
.
_stat
=
None
self
.
_stat
=
None
notification_center
=
NotificationCenter
()
notification_center
.
post_notification
(
'BlinkFileTransferWasCreated'
,
sender
=
self
)
def
__getstate__
(
self
):
def
__getstate__
(
self
):
# duplicate the selector, we cannot serialize the fd
# duplicate the selector, we cannot serialize the fd
file_selector
=
FileSelector
(
name
=
self
.
file_selector
.
name
,
type
=
self
.
file_selector
.
type
,
size
=
self
.
file_selector
.
size
,
hash
=
self
.
file_selector
.
hash
)
file_selector
=
FileSelector
(
name
=
self
.
file_selector
.
name
,
type
=
self
.
file_selector
.
type
,
size
=
self
.
file_selector
.
size
,
hash
=
self
.
file_selector
.
hash
)
...
...
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