diff options
Diffstat (limited to 'qml/mw-ui.qml')
-rw-r--r-- | qml/mw-ui.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml index 3adf1b1..e3707a9 100644 --- a/qml/mw-ui.qml +++ b/qml/mw-ui.qml @@ -463,6 +463,14 @@ Rectangle { standardButtons: StandardButton.Close } + MessageDialog { + id: no_program + icon: StandardIcon.Warning + title: qsTr("Launching command") + text: qsTr("This command is not installed") + standardButtons: StandardButton.Close + } + Connections { target: launch function onInstalled() { @@ -476,10 +484,17 @@ Rectangle { console.log("Core repository is not enabled") no_core.visible = true } + function onTainted() { // get the signal that tainted repo is not enabled console.log("Tainted is not enabled") no_tainted.visible = true } + + function onNoprogram() { + // get the signal that the command doesn't exist' + console.log("The program is not installed") + no_program.visible = true + } } } |