mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-03 01:50:11 -05:00
Remove on_reload_settings()
This commit is contained in:
parent
a96991713b
commit
bde2db3879
@ -149,11 +149,5 @@ class ChatMode(Mode):
|
|||||||
"""
|
"""
|
||||||
self.primary_action.hide()
|
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):
|
def update_primary_action(self):
|
||||||
self.common.log("ChatMode", "update_primary_action")
|
self.common.log("ChatMode", "update_primary_action")
|
||||||
|
@ -409,12 +409,6 @@ class ReceiveMode(Mode):
|
|||||||
self.history.in_progress_count -= 1
|
self.history.in_progress_count -= 1
|
||||||
self.history.update_in_progress()
|
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):
|
def reset_info_counters(self):
|
||||||
"""
|
"""
|
||||||
Set the info counters back to zero.
|
Set the info counters back to zero.
|
||||||
|
@ -362,16 +362,6 @@ class ShareMode(Mode):
|
|||||||
strings._("systray_share_canceled_message"),
|
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):
|
def update_primary_action(self):
|
||||||
self.common.log("ShareMode", "update_primary_action")
|
self.common.log("ShareMode", "update_primary_action")
|
||||||
|
|
||||||
|
@ -317,16 +317,6 @@ class WebsiteMode(Mode):
|
|||||||
"""
|
"""
|
||||||
self.primary_action.hide()
|
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):
|
def update_primary_action(self):
|
||||||
self.common.log("WebsiteMode", "update_primary_action")
|
self.common.log("WebsiteMode", "update_primary_action")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user