mirror of
https://github.com/onionshare/onionshare.git
synced 2025-09-27 19:41:02 -04:00
Reset the ToggleHistory indicator count/label when a share starts. Add a test for this
This commit is contained in:
parent
aac77ef425
commit
7a6d34103d
5 changed files with 10 additions and 0 deletions
|
@ -212,6 +212,8 @@ class ReceiveMode(Mode):
|
|||
Set the info counters back to zero.
|
||||
"""
|
||||
self.history.reset()
|
||||
self.toggle_history.indicator_count = 0
|
||||
self.toggle_history.update_indicator()
|
||||
|
||||
def update_primary_action(self):
|
||||
self.common.log('ReceiveMode', 'update_primary_action')
|
||||
|
|
|
@ -334,6 +334,8 @@ class ShareMode(Mode):
|
|||
Set the info counters back to zero.
|
||||
"""
|
||||
self.history.reset()
|
||||
self.toggle_history.indicator_count = 0
|
||||
self.toggle_history.update_indicator()
|
||||
|
||||
@staticmethod
|
||||
def _compute_total_size(filenames):
|
||||
|
|
|
@ -258,6 +258,8 @@ class WebsiteMode(Mode):
|
|||
Set the info counters back to zero.
|
||||
"""
|
||||
self.history.reset()
|
||||
self.toggle_history.indicator_count = 0
|
||||
self.toggle_history.update_indicator()
|
||||
|
||||
@staticmethod
|
||||
def _compute_total_size(filenames):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue