94 if Preferences.getCooperation("AutoStartServer"): |
94 if Preferences.getCooperation("AutoStartServer"): |
95 self.on_serverButton_clicked() |
95 self.on_serverButton_clicked() |
96 |
96 |
97 self.recent = [] |
97 self.recent = [] |
98 self.__loadHostsHistory() |
98 self.__loadHostsHistory() |
|
99 |
|
100 self.__ui.shutdown.connect(self.__shutdown) |
99 |
101 |
100 def __loadHostsHistory(self): |
102 def __loadHostsHistory(self): |
101 """ |
103 """ |
102 Private method to load the recently connected hosts. |
104 Private method to load the recently connected hosts. |
103 """ |
105 """ |
718 itm.text().split("@")[0] |
720 itm.text().split("@")[0] |
719 ) |
721 ) |
720 ) |
722 ) |
721 self.chatEdit.setTextColor(color) |
723 self.chatEdit.setTextColor(color) |
722 |
724 |
723 def shutdown(self): |
725 def __shutdown(self): |
724 """ |
726 """ |
725 Public method to shut down the cooperation system. |
727 Private method to shut down the cooperation system. |
726 """ |
728 """ |
727 self.__client.disconnectConnections() |
729 self.__client.disconnectConnections() |
728 self.__setConnected(False) |
730 self.__setConnected(False) |