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
Network
KDE Connect
Commits
4d868a2e
Commit
4d868a2e
authored
Jun 25, 2021
by
Piyush Aggarwal
🎮
Browse files
deviceindicator: add path to look in for kdeconnect-handler.exe
parent
d71af013
Pipeline
#67460
passed with stage
in 4 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
indicator/deviceindicator.cpp
View file @
4d868a2e
...
@@ -73,7 +73,7 @@ DeviceIndicator::DeviceIndicator(DeviceDbusInterface* device)
...
@@ -73,7 +73,7 @@ DeviceIndicator::DeviceIndicator(DeviceDbusInterface* device)
setWhenAvailable
(
device
->
hasPlugin
(
QStringLiteral
(
"kdeconnect_photo"
)),
[
getPhoto
](
bool
available
)
{
getPhoto
->
setVisible
(
available
);
},
this
);
setWhenAvailable
(
device
->
hasPlugin
(
QStringLiteral
(
"kdeconnect_photo"
)),
[
getPhoto
](
bool
available
)
{
getPhoto
->
setVisible
(
available
);
},
this
);
// Send file
// Send file
const
QString
kdeconnectHandlerExecutable
=
QStandardPaths
::
findExecutable
(
QStringLiteral
(
"kdeconnect-handler"
));
const
QString
kdeconnectHandlerExecutable
=
QStandardPaths
::
findExecutable
(
QStringLiteral
(
"kdeconnect-handler"
)
,
{
QCoreApplication
::
applicationDirPath
()
}
);
if
(
!
kdeconnectHandlerExecutable
.
isEmpty
())
{
if
(
!
kdeconnectHandlerExecutable
.
isEmpty
())
{
auto
handlerApp
=
addAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"document-share"
)),
i18n
(
"Send a file/URL"
));
auto
handlerApp
=
addAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"document-share"
)),
i18n
(
"Send a file/URL"
));
QObject
::
connect
(
handlerApp
,
&
QAction
::
triggered
,
device
,
[
device
,
kdeconnectHandlerExecutable
]
()
{
QObject
::
connect
(
handlerApp
,
&
QAction
::
triggered
,
device
,
[
device
,
kdeconnectHandlerExecutable
]
()
{
...
...
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