D18805: Workaround for the bug 393630 - SystemTray part

David Edmundson noreply at phabricator.kde.org
Thu Feb 7 10:16:30 GMT 2019


davidedmundson added a comment.


  If the only usage is the SNI model lets just rebuild the model on the ConfigEntries side. 
  You're right that sharing objects between contexts seems to cause issues.
  
  It's backed by a datasource so all the heavy operations are already implicitly shared.
  
  We should only need
  
      PlasmaCore.DataSource {
             id: statusNotifierSource
             engine: "statusnotifieritem"
             interval: 0
             onSourceAdded: {
                connectSource(source)
             }
             Component.onCompleted: {
                 connectedSources = sources
             }
       }
    
    
    PlasmaCore.SortFilterModel {
           id: statusNotifierModel
           sourceModel: PlasmaCore.DataModel {
               dataSource: statusNotifierSource
           }
       }
  
  and then port all the plasmoid.rootItem to just our local statusNotifierModel

REPOSITORY
  R120 Plasma Workspace

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

To: trmdi, #plasma, ngraham, broulik, davidedmundson, anthonyfieroni, fvogt
Cc: plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190207/0cc14f2e/attachment-0001.html>


More information about the Plasma-devel mailing list