mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-31 18:26:12 -05:00
Merge branch 'mig5-468_canceled_feedback_on_stopped_server'
This commit is contained in:
commit
1d5fb3d4a9
@ -376,9 +376,6 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||||||
if self.new_download:
|
if self.new_download:
|
||||||
self.vbar.setValue(self.vbar.maximum())
|
self.vbar.setValue(self.vbar.maximum())
|
||||||
self.new_download = False
|
self.new_download = False
|
||||||
# only check for requests if the server is running
|
|
||||||
if self.server_status.status != self.server_status.STATUS_STARTED:
|
|
||||||
return
|
|
||||||
|
|
||||||
events = []
|
events = []
|
||||||
|
|
||||||
@ -415,6 +412,9 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||||||
# close on finish?
|
# close on finish?
|
||||||
if not web.get_stay_open():
|
if not web.get_stay_open():
|
||||||
self.server_status.stop_server()
|
self.server_status.stop_server()
|
||||||
|
else:
|
||||||
|
if self.server_status.status == self.server_status.STATUS_STOPPED:
|
||||||
|
self.downloads.cancel_download(event["data"]["id"])
|
||||||
|
|
||||||
elif event["type"] == web.REQUEST_CANCELED:
|
elif event["type"] == web.REQUEST_CANCELED:
|
||||||
self.downloads.cancel_download(event["data"]["id"])
|
self.downloads.cancel_download(event["data"]["id"])
|
||||||
|
Loading…
Reference in New Issue
Block a user