diff --git a/qtgui/mainwindow.py b/qtgui/mainwindow.py index 0d8ac2f..ec83d1a 100644 --- a/qtgui/mainwindow.py +++ b/qtgui/mainwindow.py @@ -326,20 +326,19 @@ class MainWindow(QtWidgets.QMainWindow): "geometry":self.restoreGeometry, "windowState":self.restoreState, "recentlyOpenedSessions":self.recentlyOpenedSessions.load, - "visible":self.recentlyOpenedSessions.load, - "tab": lambda i: self.ui.tabbyCat.setCurrentIndex(int(i)), + "tab": lambda i: self.ui.tabbyCat.setCurrentIndex(int(i)), } for key in settings.allKeys(): if key in actions: #if not it doesn't matter. this is all uncritical. actions[key](settings.value(key)) - + if self.systemTray.available and settings.contains("visible") and settings.value("visible") == "false": self.setVisible(False) else: self.setVisible(True) #This is also the default state if there is no config - + class SessionController(object): """Controls the StackWidget that contains the Session Tree, Open Session/Client and their quick and easy variants. @@ -391,7 +390,7 @@ class SessionController(object): action.setEnabled(state) if state and not self.openSessionController.clientTabe.clientsTreeWidget.currentItem(): - state = False #we wanted to activate, but there is no client selected. + state = False #we wanted to activate, but there is no client selected. for action in self.ui.menuClientNameId.actions(): action.setEnabled(state)