Hide the Clear All button on server start, show it again when stopped

This commit is contained in:
Miguel Jacq 2020-05-28 13:02:16 +10:00
parent 327747fa3f
commit a22a559e98
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6
2 changed files with 8 additions and 0 deletions

View File

@ -206,6 +206,8 @@ class ShareMode(Mode):
# Hide and reset the downloads if we have previously shared
self.reset_info_counters()
self.clear_all_button.hide()
def start_server_step2_custom(self):
"""
Step 2 in starting the server. Zipping up files.
@ -265,6 +267,8 @@ class ShareMode(Mode):
self.history.update_in_progress()
self.file_selection.file_list.adjustSize()
self.clear_all_button.show()
def cancel_server_custom(self):
"""
Stop the compression thread on cancel

View File

@ -199,6 +199,8 @@ class WebsiteMode(Mode):
# Hide and reset the downloads if we have previously shared
self.reset_info_counters()
self.clear_all_button.hide()
def start_server_step2_custom(self):
"""
Step 2 in starting the server. Zipping up files.
@ -236,6 +238,8 @@ class WebsiteMode(Mode):
self.history.completed_count = 0
self.file_selection.file_list.adjustSize()
self.clear_all_button.show()
def cancel_server_custom(self):
"""
Log that the server has been cancelled