mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-05 07:55:23 -04:00
Hide the Clear All button on server start, show it again when stopped
This commit is contained in:
parent
890e194bb7
commit
6012e21899
2 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue