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()
 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()
 def get_root_children(self):
     browser = self.browser
     return chain_from_iterable(imap(lambda q: q(browser), self.queries))
 def get_root_children(self):
     browser = self.browser
     return chain_from_iterable(imap(lambda q: q(browser), self.queries))