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 ---