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
a6d22778
Commit
a6d22778
authored
Dec 01, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
flatpak: Improve tooltip in the "Add Flathub" button
BUG: 425275
parent
ea57334a
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp
View file @
a6d22778
...
...
@@ -40,7 +40,8 @@ FlatpakSourcesBackend::FlatpakSourcesBackend(const QVector<FlatpakInstallation *
,
m_flathubAction
(
new
QAction
(
i18n
(
"Add Flathub"
),
this
))
,
m_noSourcesItem
(
new
QStandardItem
(
QStringLiteral
(
"-"
)))
{
m_flathubAction
->
setToolTip
(
QStringLiteral
(
"flathub"
));
m_flathubAction
->
setObjectName
(
QStringLiteral
(
"flathub"
));
m_flathubAction
->
setToolTip
(
i18n
(
"Makes it possible to easily install the applications listed in https://flathub.org"
));
connect
(
m_flathubAction
,
&
QAction
::
triggered
,
this
,
[
this
](){
addSource
(
QStringLiteral
(
"https://flathub.org/repo/flathub.flatpakrepo"
));
});
...
...
@@ -302,7 +303,7 @@ void FlatpakSourcesBackend::addRemote(FlatpakRemote *remote, FlatpakInstallation
const
auto
theActions
=
actions
();
for
(
const
QVariant
&
act
:
theActions
)
{
QAction
*
action
=
qobject_cast
<
QAction
*>
(
act
.
value
<
QObject
*>
());
if
(
action
->
toolTip
()
==
id
)
{
if
(
action
->
objectName
()
==
id
)
{
action
->
setEnabled
(
false
);
action
->
setVisible
(
false
);
}
...
...
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