Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
778c044c
Commit
778c044c
authored
Jan 20, 2022
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
discover/qml/Feedback.qml
View file @
778c044c
...
...
@@ -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
"
);
}
}
]
...
...
discover/qml/SourcesPage.qml
View file @
778c044c
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment