mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Add a message when there are no storage devices. Fixes #798
This commit is contained in:
parent
ab3b56af12
commit
fba63d01a7
1 changed files with 10 additions and 0 deletions
10
src/main.qml
10
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue