Remove on_reload_settings()

This commit is contained in:
Miguel Jacq 2022-11-23 17:09:41 +11:00
parent a96991713b
commit bde2db3879
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
4 changed files with 0 additions and 32 deletions

View file

@ -149,11 +149,5 @@ class ChatMode(Mode):
"""
self.primary_action.hide()
def on_reload_settings(self):
"""
We should be ok to re-enable the 'Start Receive Mode' button now.
"""
self.primary_action.show()
def update_primary_action(self):
self.common.log("ChatMode", "update_primary_action")

View file

@ -409,12 +409,6 @@ class ReceiveMode(Mode):
self.history.in_progress_count -= 1
self.history.update_in_progress()
def on_reload_settings(self):
"""
We should be ok to re-enable the 'Start Receive Mode' button now.
"""
self.primary_action.show()
def reset_info_counters(self):
"""
Set the info counters back to zero.

View file

@ -362,16 +362,6 @@ class ShareMode(Mode):
strings._("systray_share_canceled_message"),
)
def on_reload_settings(self):
"""
If there were some files listed for sharing, we should be ok to re-enable
the 'Start Sharing' button now.
"""
if self.server_status.file_selection.get_num_files() > 0:
self.primary_action.show()
self.info_label.show()
self.remove_all_button.show()
def update_primary_action(self):
self.common.log("ShareMode", "update_primary_action")

View file

@ -317,16 +317,6 @@ class WebsiteMode(Mode):
"""
self.primary_action.hide()
def on_reload_settings(self):
"""
If there were some files listed for sharing, we should be ok to re-enable
the 'Start Sharing' button now.
"""
if self.server_status.file_selection.get_num_files() > 0:
self.primary_action.show()
self.info_label.show()
self.remove_all_button.show()
def update_primary_action(self):
self.common.log("WebsiteMode", "update_primary_action")