Commit 778c044c authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Provide a contextual action on Settings to open the Updates configuration page

BUG: 447495
parent c120636c
Pipeline #126191 passed with stage
in 59 seconds
......@@ -22,6 +22,13 @@ UserFeedback.Provider
onTriggered: {
provider.encouraged()
}
},
Kirigami.Action {
text: i18n("Configure Updates…")
displayHint: Kirigami.DisplayHint.AlwaysHide
onTriggered: {
KQCA.KCMShell.open("kcm_updates");
}
}
]
......
......@@ -5,6 +5,7 @@ import org.kde.discover 2.0
import org.kde.discover.app 1.0
import org.kde.kirigami 2.14 as Kirigami
import "navigation.js" as Navigation
import org.kde.kquickcontrolsaddons 2.0 as KQCA
DiscoverPage {
id: page
......@@ -12,7 +13,16 @@ DiscoverPage {
title: i18n("Settings")
property string search: ""
contextualActions: feedbackLoader.item ? feedbackLoader.item.actions : []
Kirigami.Action {
id: configureUpdatesAction
text: i18n("Configure Updates…")
displayHint: Kirigami.DisplayHint.AlwaysHide
onTriggered: {
KQCA.KCMShell.open("kcm_updates");
}
}
contextualActions: feedbackLoader.item ? feedbackLoader.item.actions : [configureUpdatesAction]
mainItem: ListView {
id: sourcesView
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment