Commit 21086ea9 authored by Dan Pascu's avatar Dan Pascu

Added new notification when a blink session is created

parent b36ebb63
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment