mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-27 00:09:50 -05:00
Hide the Clear All button on server start, show it again when stopped
This commit is contained in:
parent
327747fa3f
commit
a22a559e98
@ -206,6 +206,8 @@ class ShareMode(Mode):
|
|||||||
# Hide and reset the downloads if we have previously shared
|
# Hide and reset the downloads if we have previously shared
|
||||||
self.reset_info_counters()
|
self.reset_info_counters()
|
||||||
|
|
||||||
|
self.clear_all_button.hide()
|
||||||
|
|
||||||
def start_server_step2_custom(self):
|
def start_server_step2_custom(self):
|
||||||
"""
|
"""
|
||||||
Step 2 in starting the server. Zipping up files.
|
Step 2 in starting the server. Zipping up files.
|
||||||
@ -265,6 +267,8 @@ class ShareMode(Mode):
|
|||||||
self.history.update_in_progress()
|
self.history.update_in_progress()
|
||||||
self.file_selection.file_list.adjustSize()
|
self.file_selection.file_list.adjustSize()
|
||||||
|
|
||||||
|
self.clear_all_button.show()
|
||||||
|
|
||||||
def cancel_server_custom(self):
|
def cancel_server_custom(self):
|
||||||
"""
|
"""
|
||||||
Stop the compression thread on cancel
|
Stop the compression thread on cancel
|
||||||
|
@ -199,6 +199,8 @@ class WebsiteMode(Mode):
|
|||||||
# Hide and reset the downloads if we have previously shared
|
# Hide and reset the downloads if we have previously shared
|
||||||
self.reset_info_counters()
|
self.reset_info_counters()
|
||||||
|
|
||||||
|
self.clear_all_button.hide()
|
||||||
|
|
||||||
def start_server_step2_custom(self):
|
def start_server_step2_custom(self):
|
||||||
"""
|
"""
|
||||||
Step 2 in starting the server. Zipping up files.
|
Step 2 in starting the server. Zipping up files.
|
||||||
@ -236,6 +238,8 @@ class WebsiteMode(Mode):
|
|||||||
self.history.completed_count = 0
|
self.history.completed_count = 0
|
||||||
self.file_selection.file_list.adjustSize()
|
self.file_selection.file_list.adjustSize()
|
||||||
|
|
||||||
|
self.clear_all_button.show()
|
||||||
|
|
||||||
def cancel_server_custom(self):
|
def cancel_server_custom(self):
|
||||||
"""
|
"""
|
||||||
Log that the server has been cancelled
|
Log that the server has been cancelled
|
||||||
|
Loading…
Reference in New Issue
Block a user