From 3d469366132f75dbb8e5fc7546935b73490362ff Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Tue, 6 Oct 2026 12:54:26 +0200 Subject: [PATCH] Hide outline until a document is selected When no document was selected, the OutlineView's own "No sections" empty-state label (count === 0 with an empty model) rendered centered in the same pane as the "Select a document" placeholder. Both used anchors.centerIn: parent, so the two messages overlapped and read as crunched text. Hide the OutlineView until currentDoc is set so only the "Select a document" placeholder shows. --- ui/qml/Main.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/qml/Main.qml b/ui/qml/Main.qml index aa9bb99..b3f2673 100644 --- a/ui/qml/Main.qml +++ b/ui/qml/Main.qml @@ -242,6 +242,10 @@ ApplicationWindow { anchors.fill: parent anchors.margins: root.baseFontSize * 0.6 model: docModel + // Hidden until a document is selected so its own + // "No sections" empty state does not overlap the + // "Select a document" placeholder below. + visible: root.currentDoc !== "" } Label {