mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-13 00:25:51 -04:00
- Refactor the Web.ShareMode client_cancel variable to be Web.stop_q, a thread-safe queue that communicates to both share and receive mode when the user stops the server. In share mode this still stops sending the file. In receive mode, if there's a transfer in progress, it cancels it in the middle, and doesn't end up saving that file
- In receive mode, make the receive mode dir right before saving a file (so if it doesn't complete, don't make an empty dir) - Minor UX tweak: resizing the window stretches the History widget first
This commit is contained in:
parent
89ccf0306b
commit
b75757ee49
8 changed files with 102 additions and 39 deletions
|
@ -184,7 +184,7 @@ class UploadHistoryItemFile(QtWidgets.QWidget):
|
|||
|
||||
# macOS
|
||||
elif self.common.platform == 'Darwin':
|
||||
subprocess.call(['open', '-R', abs_filename])
|
||||
subprocess.call(['open', '-R', abs_filename])
|
||||
|
||||
# Windows
|
||||
elif self.common.platform == 'Windows':
|
||||
|
@ -295,6 +295,13 @@ class UploadHistoryItem(HistoryItem):
|
|||
)
|
||||
self.label.setText(text)
|
||||
|
||||
elif data['action'] == 'canceled':
|
||||
# Hide the progress bar
|
||||
self.progress_bar.hide()
|
||||
|
||||
# Change the label
|
||||
self.label.setText(strings._('gui_canceled'))
|
||||
|
||||
|
||||
class HistoryItemList(QtWidgets.QScrollArea):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue