diff options
Diffstat (limited to 'qml/mw-ui.qml')
-rw-r--r-- | qml/mw-ui.qml | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml index 0d6d8ef..957923c 100644 --- a/qml/mw-ui.qml +++ b/qml/mw-ui.qml @@ -471,6 +471,15 @@ Rectangle { } MessageDialog { + id: no_nonfree + icon: StandardIcon.Warning + title: qsTr("Application installation") + //: %1 will be replaced with the 'Media sources' translation + text: qsTr("Nonfree repositories are not enabled. See the '%1' tab.").arg(qsTr("Media sources")) + standardButtons: StandardButton.Close + } + + MessageDialog { id: no_program icon: StandardIcon.Warning title: qsTr("Launching command") @@ -478,27 +487,44 @@ Rectangle { standardButtons: StandardButton.Close } + MessageDialog { + id: no_steam + icon: StandardIcon.Warning + title: qsTr("Application installation") + //: %1 will be replaced with the 'Media sources' translation + text: qsTr("Steam needs that Nonfree and Core 32bit repositories are enabled. See the '%1' tab.").arg(qsTr("Media sources")) + standardButtons: StandardButton.Close + } + Connections { target: launch - function onInstalled() { + onInstalled: { // get the signal to reload the applist console.log("Reload applications list") itemModel.update_list(categoriesList.currentItem.myGroup) } - function onRepo() { + onRepo: { // get the signal that core repo is not enabled console.log("Core repository is not enabled") no_core.visible = true } - function onTainted() { + onNeeded: { // get the signal that tainted repo is not enabled - console.log("Tainted is not enabled") - no_tainted.visible = true + console.log("%1 is not enabled".arg(repo)) + if (repo == "non-free") { + no_nonfree.visible = true + } + if (repo == "tainted") { + no_tainted.visible = true + } + if (repo == "steam") { + no_steam.visible = true + } } - function onNoprogram() { + onNoprogram: { // get the signal that the command doesn't exist' console.log("The program is not installed") no_program.visible = true |