From fba63d01a7846cd35d1f0e46e0d0cc79dfeccf0c Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Wed, 31 Jan 2024 16:29:15 -0500 Subject: [PATCH] Add a message when there are no storage devices. Fixes #798 --- src/main.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main.qml b/src/main.qml index 1f6a2ed..5dc6e18 100644 --- a/src/main.qml +++ b/src/main.qml @@ -998,6 +998,16 @@ ApplicationWindow { height: window.height-100 boundsBehavior: Flickable.StopAtBounds highlight: Rectangle { color: "lightsteelblue"; radius: 5 } + + Label { + anchors.fill: parent + horizontalAlignment: Qt.AlignHCenter + verticalAlignment: Qt.AlignVCenter + visible: parent.count == 0 + text: qsTr("No storage devices found") + font.bold: true + } + ScrollBar.vertical: ScrollBar { width: 10 policy: dstlist.contentHeight > dstlist.height ? ScrollBar.AlwaysOn : ScrollBar.AsNeeded