Communicate the receive mode dir to the GUI, so clicking the open folder button opens the file manager to the correct directory

This commit is contained in:
Micah Lee 2018-10-25 21:38:20 -07:00
parent 6233487ecd
commit 65b4afeba3
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
7 changed files with 52 additions and 4 deletions

View file

@ -168,6 +168,16 @@ class ReceiveMode(Mode):
'new_filename': event["data"]["new_filename"]
})
def handle_request_upload_set_dir(self, event):
"""
Handle REQUEST_UPLOAD_SET_DIR event.
"""
self.history.update(event["data"]["id"], {
'action': 'set_dir',
'filename': event["data"]["filename"],
'dir': event["data"]["dir"]
})
def handle_request_upload_finished(self, event):
"""
Handle REQUEST_UPLOAD_FINISHED event.