Пример #1
0
 def save(self):
     tray = self.tray_box.isChecked()
     old_tray_value = conf.get_tray_available()
     conf.set_tray_available(tray)
     if tray != old_tray_value:
         signals.show_or_hide_tray.emit()
     switch_tab = self.switch_tab_box.isChecked()
     conf.set_auto_switch_tab(switch_tab)
Пример #2
0
 def show_or_hide_tray(self):
     if self.tray.is_available() and conf.get_tray_available():
         self.tray.show()
     else:
         self.tray.hide()
Пример #3
0
 def show_or_hide_tray(self):
     if self.tray.is_available() and conf.get_tray_available():
         self.tray.show()
     else:
         self.tray.hide()
Пример #4
0
 def load(self):
     if conf.get_tray_available():
         self.tray_box.toggle()
     if conf.get_auto_switch_tab():
         self.switch_tab_box.toggle()