def _on_active_steps_changed(self, editor):
     if self.is_enabled():
         all_steps = list(set(chain_from_iterable(imap(lambda e: e.active_steps, self._editors))))
         self._automation.selected_time = all_steps
         self._update_note_infos()
         if len(all_steps) > 0:
             self._request_hide = False
             if self.selected_mode == 'disabled':
                 self.selected_mode = 'about_to_show'
                 self._try_immediate_show_settings()
         else:
             self._request_hide = True
             self._try_hide_settings()
Beispiel #2
0
 def _on_active_steps_changed(self, editor):
     if self.is_enabled():
         all_steps = list(set(chain_from_iterable(imap(lambda e: e.active_steps, self._editors))))
         self._automation.selected_time = all_steps
         self._update_note_infos()
         if len(all_steps) > 0:
             self._request_hide = False
             if self.selected_mode == 'disabled':
                 self.selected_mode = 'about_to_show'
                 self._try_immediate_show_settings()
         else:
             self._request_hide = True
             self._try_hide_settings()