mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Linux embedded: quit (reboot) when finished
This commit is contained in:
parent
2d87a2275f
commit
832be86e79
2 changed files with 19 additions and 1 deletions
13
MsgPopup.qml
13
MsgPopup.qml
|
@ -20,6 +20,7 @@ Popup {
|
|||
property alias title: msgpopupheader.text
|
||||
property alias text: msgpopupbody.text
|
||||
property bool continueButton: true
|
||||
property bool quitButton: false
|
||||
property bool yesButton: false
|
||||
property bool noButton: false
|
||||
signal yes()
|
||||
|
@ -130,6 +131,18 @@ Popup {
|
|||
Accessible.onPressAction: clicked()
|
||||
}
|
||||
|
||||
Button {
|
||||
text: qsTr("QUIT")
|
||||
onClicked: {
|
||||
Qt.quit()
|
||||
}
|
||||
Material.foreground: "#ffffff"
|
||||
Material.background: "#c51a4a"
|
||||
font.family: roboto.name
|
||||
visible: msgpopup.quitButton
|
||||
Accessible.onPressAction: clicked()
|
||||
}
|
||||
|
||||
Text { text: " " }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue