[Differential] [Changed Subscribers] D2936: always connect to "Local" source

broulik (Kai Uwe Broulik) noreply at phabricator.kde.org
Wed Oct 5 08:59:43 UTC 2016


broulik added inline comments.

INLINE COMMENTS

> main.qml:77
>          engine: "time"
> -        connectedSources: plasmoid.configuration.selectedTimeZones
> +        connectedSources: allTimezones
>          interval: plasmoid.configuration.showSeconds ? 1000 : 60000

Can't you just bind that without Connections? (or as a readonly property var like above if you find that cleaner)

  connectedSources: {
      var ts = plasmoid.configuration.selectedTimeZones;
      if (ts.indexOf("Local") === -1) {
          ts.push("Local")
      }
      return ts
  }

REPOSITORY
  rPLASMAWORKSPACE Plasma Workspace

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

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: mart, #plasma, davidedmundson
Cc: broulik, plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161005/8c2fa7b0/attachment.html>


More information about the Plasma-devel mailing list