D16889: Listen to KDE Connect device signals

Fabian Vogt noreply at phabricator.kde.org
Thu Nov 15 18:05:20 GMT 2018


fvogt added inline comments.

INLINE COMMENTS

> extension.js:156
> +        if (chrome.runtime.lastError) {
> +            // failed to create entry, most likely visibility change before device added was processed
> +            return;

Can you explain how that makes the creation fail?

> kdeconnectplugin.cpp:155
> +{
> +    if (!m_devices.contains(deviceId)) {
> +        return;

You could just do

  if(m_devices.removeOne(deviceId))
      sendData(...)

if the order of removing and sendData is not important.

REPOSITORY
  R856 Plasma Browser Integration

REVISION DETAIL
  https://phabricator.kde.org/D16889

To: broulik, #plasma, davidedmundson, fvogt, nicolasfella
Cc: apol, bruns, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20181115/07719c7d/attachment.html>


More information about the Plasma-devel mailing list