From 84d45d051bb7baeaa3b1134e2e822bb178aafd33 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Fri, 9 Oct 2026 09:40:55 +0200 Subject: [PATCH] gui: procs window improvements - Output panel always visible with placeholder text - View Output clears panel before refreshing - Added Dismiss button to close window - Process list has fixed height, output panel fills remaining space --- kde/gui/ProcManagerWindow.qml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/kde/gui/ProcManagerWindow.qml b/kde/gui/ProcManagerWindow.qml index 52ea175..57d2ebf 100644 --- a/kde/gui/ProcManagerWindow.qml +++ b/kde/gui/ProcManagerWindow.qml @@ -110,7 +110,8 @@ Window { ListView { id: procList Layout.fillWidth: true - Layout.fillHeight: true + Layout.preferredHeight: 180 + Layout.minimumHeight: 100 model: procs clip: true @@ -193,22 +194,24 @@ Window { } } - // Output pane (expandable) + // Output pane (always visible) GroupBox { Layout.fillWidth: true - Layout.preferredHeight: outputText.length > 0 ? 150 : 0 - visible: outputText.length > 0 - title: "Output (PID " + selectedPid + ")" + Layout.fillHeight: true + Layout.minimumHeight: 100 + title: selectedPid > 0 ? "Output (PID " + selectedPid + ")" : "Output" ScrollView { anchors.fill: parent TextArea { + id: outputArea text: outputText readOnly: true font.family: "monospace" font.pointSize: 9 wrapMode: TextEdit.Wrap selectByMouse: true + placeholderText: "Select a process and click View Output" } } } @@ -229,6 +232,7 @@ Window { icon.name: "document-preview" enabled: selectedPid > 0 onClicked: { + outputText = "" outputText = ollie.procOutput(currentSessionId, currentAgentId, selectedPid) } } @@ -254,6 +258,12 @@ Window { Qt.callLater(refresh) } } + + Button { + text: "Dismiss" + icon.name: "window-close" + onClicked: procWindow.close() + } } }