mirror of
https://github.com/onionshare/onionshare.git
synced 2025-09-16 18:44:36 -04:00
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:
parent
6233487ecd
commit
65b4afeba3
7 changed files with 52 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue