Browse Source

Double click on a crashed clients opens it again.

tags/v0.3.0
Nils 2 months ago
parent
commit
d14bd16cce
2 changed files with 5 additions and 2 deletions
  1. +1
    -0
      CHANGELOG
  2. +4
    -2
      qtgui/opensessioncontroller.py

+ 1
- 0
CHANGELOG View File

@@ -2,6 +2,7 @@
Remove "Quick" mode. As it turns out "Full" mode is quick enough. Port convenience features to full mode.
Add button in session chooser for alternative access to context menu options
Add normal "Save" to tray icon.
Double click on a crashed clients opens it again. This was intentional so far, because a crash is special. But it will be fine...

2021-01-15 Version 0.2.1
Remove Nuitka as dependency. Build commands stay the same.

+ 4
- 2
qtgui/opensessioncontroller.py View File

@@ -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):

Loading…
Cancel
Save