@@ -13,6 +13,7 @@ class SignalNotifier(param.Parameterized):
1313 channel_visibility_changed = param .Event ()
1414 manual_curation_updated = param .Event ()
1515 time_info_updated = param .Event ()
16+ use_times_updated = param .Event ()
1617 active_view_updated = param .Event ()
1718 unit_color_changed = param .Event ()
1819
@@ -35,6 +36,9 @@ def notify_manual_curation_updated(self):
3536 def notify_time_info_updated (self ):
3637 self .param .trigger ("time_info_updated" )
3738
39+ def notify_use_times_updated (self ):
40+ self .param .trigger ("use_times_updated" )
41+
3842 def notify_active_view_updated (self ):
3943 # this is used to keep an "active view" in the main window
4044 # when a view triggers this event, it self-declares it as active
@@ -65,6 +69,7 @@ def connect_view(self, view):
6569 view .notifier .param .watch (self .on_channel_visibility_changed , "channel_visibility_changed" )
6670 view .notifier .param .watch (self .on_manual_curation_updated , "manual_curation_updated" )
6771 view .notifier .param .watch (self .on_time_info_updated , "time_info_updated" )
72+ view .notifier .param .watch (self .on_use_times_updated , "use_times_updated" )
6873 view .notifier .param .watch (self .on_active_view_updated , "active_view_updated" )
6974 view .notifier .param .watch (self .on_unit_color_changed , "unit_color_changed" )
7075
@@ -110,6 +115,15 @@ def on_time_info_updated(self, param):
110115 continue
111116 view .on_time_info_updated ()
112117
118+ def on_use_times_updated (self , param ):
119+ # use times is updated also when a view is not active
120+ if not self ._active :
121+ return
122+ for view in self .controller .views :
123+ if param .obj .view == view :
124+ continue
125+ view .on_use_times_updated ()
126+
113127 def on_active_view_updated (self , param ):
114128 if not self ._active :
115129 return
0 commit comments