code: def apply_statusbar_settings(self):
          
          show_status_bar = CONF.get('main', 'show_status_bar')
          self.statusBar().setVisible(show_status_bar)
  
          if show_status_bar:
              for widget, name in ((self.mem_status, 'memory_usage'),
                                   (self.cpu_status, 'cpu_usage')):
                  if widget is not None:
                      widget.setVisible(CONF.get('main', '%s/enable' % name))
                      widget.set_interval(CONF.get('main', '%s/timeout' % name))
          else:
              return
docs: Update status bar widgets settings