From adb2760c916b4770b79826303e3cfe840b0c1b86 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Sat, 1 Aug 2026 20:05:31 +0200 Subject: [PATCH] fix(gui): load sessions on startup, show '(no sessions)' placeholder - ensureRootDataLoaded() now calls refreshSessions() so the initial session list is populated immediately, not only on events - Added '(no sessions)' placeholder label in the session tree ListView when no sessions exist --- gui/main.qml | 10 ++++++++++ gui/ollie9pclient.cpp | 1 + 2 files changed, 11 insertions(+) diff --git a/gui/main.qml b/gui/main.qml index 6dc1984..c7d6315 100644 --- a/gui/main.qml +++ b/gui/main.qml @@ -549,6 +549,16 @@ ApplicationWindow { model: sessionTreeModel clip: true + // Show placeholder when empty + Label { + anchors.centerIn: parent + text: "(no sessions)" + color: theme.midColor + font.italic: true + font.pixelSize: theme.fontSize > 0 ? theme.fontSize * 0.9 : 12 + visible: sessionList.count === 0 + } + delegate: ItemDelegate { width: sessionList.width diff --git a/gui/ollie9pclient.cpp b/gui/ollie9pclient.cpp index 7f98688..5b1039e 100644 --- a/gui/ollie9pclient.cpp +++ b/gui/ollie9pclient.cpp @@ -424,6 +424,7 @@ void Ollie9pClient::ensureRootDataLoaded() emit rootModelsLoadedChanged(); } } + refreshSessions(); } // --- Streaming ---