|
|
@ -169,7 +169,7 @@ class ClientTable(object): |
|
|
|
|
|
|
|
#Signals |
|
|
|
self.clientsTreeWidget.currentItemChanged.connect(self._reactSignal_currentClientChanged) |
|
|
|
self.clientsTreeWidget.itemDoubleClicked.connect(self._reactSignal_itemDoubleClicked) #This is hide/show and NOT edit |
|
|
|
self.clientsTreeWidget.itemDoubleClicked.connect(self._reactSignal_itemDoubleClicked) #This is hide/show or restart and NOT edit |
|
|
|
self.clientsTreeWidget.itemDelegate().closeEditor.connect(self._reactSignal_itemEditingFinished) |
|
|
|
self.clientsTreeWidget.model().layoutAboutToBeChanged.connect(self._reactSignal_rememberSorting) |
|
|
|
#self.clientsTreeWidget.model().layoutChanged.connect(self._reactSignal_restoreSorting) |
|
|
@ -248,7 +248,9 @@ class ClientTable(object): |
|
|
|
self._updateClientMenu() |
|
|
|
|
|
|
|
def _reactSignal_itemDoubleClicked(self, item:QtWidgets.QTreeWidgetItem, column:int): |
|
|
|
if item.clientDict["hasOptionalGUI"]: |
|
|
|
if item.clientDict["lastStatus"] == "stopped": |
|
|
|
api.clientResume(item.clientDict["clientId"]) |
|
|
|
elif item.clientDict["hasOptionalGUI"]: |
|
|
|
api.clientToggleVisible(item.clientDict["clientId"]) |
|
|
|
|
|
|
|
def _reactCallback_clientStatusChanged(self, clientDict:dict): |
|
|
|