summaryrefslogtreecommitdiffstats
path: root/qml/mw-ui.qml
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2021-04-03 22:50:24 +0200
committerPapoteur <papoteur@mageia.org>2021-04-04 14:40:00 +0200
commit744c8a7cb9c0e57c6f9ce8edb92c109ad4af1ecf (patch)
treeca59a2fdc4b45dd4bdb915f63c7cfff3ebbe2ac2 /qml/mw-ui.qml
parent0ef2054446ef504cbd15b4a4b699742cb23db0ad (diff)
downloadmageiawelcome-744c8a7cb9c0e57c6f9ce8edb92c109ad4af1ecf.tar
mageiawelcome-744c8a7cb9c0e57c6f9ce8edb92c109ad4af1ecf.tar.gz
mageiawelcome-744c8a7cb9c0e57c6f9ce8edb92c109ad4af1ecf.tar.bz2
mageiawelcome-744c8a7cb9c0e57c6f9ce8edb92c109ad4af1ecf.tar.xz
mageiawelcome-744c8a7cb9c0e57c6f9ce8edb92c109ad4af1ecf.zip
Give a message that some repositories have to be active for installation of application
add a special case for Steam which needs 32bit repositories (mga#28328).
Diffstat (limited to 'qml/mw-ui.qml')
-rw-r--r--qml/mw-ui.qml38
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