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.
This commit is contained in:
Levi Neely 2026-10-06 12:54:26 +02:00
parent 42f8aaa62c
commit 3d46936613
1 changed files with 4 additions and 0 deletions

View File

@ -242,6 +242,10 @@ ApplicationWindow {
anchors.fill: parent anchors.fill: parent
anchors.margins: root.baseFontSize * 0.6 anchors.margins: root.baseFontSize * 0.6
model: docModel 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 { Label {