D7319: [Notifications] Clean up States

Kai Uwe Broulik noreply at phabricator.kde.org
Tue Aug 15 09:39:15 UTC 2017


broulik created this revision.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION SUMMARY
  While I'm usually a huge fan of States, this is done only half-way with States in the compact representation (NotificationIcon) overwriting the plasmoid's state in addition to there being a binding on it in main.qml.
  It also used a "default" state (note: the default state in QML is empty string) in addition to assigning default values on items themselves anyway.
  This seems to shift evaluation of bindings into an order where we first stop the BusyIndicator and then become passive, moving the the systray popup, working around the Qt crash we're seeing. It's a nice clean up in any case imho.
  
  CCBUG: 381105

TEST PLAN
  - Verified the applet becomes active when there's a persistent notification or a running job
  - Verified the icon changes to gray outline circle when passive notification is there and gray filled circle if a job is running
  - Verified it didn't break when I disabled "track job progress" in applet settings (will unload "jobs")
  - Failed to crash plasma by starting a job and then cancelling it with the applet open

REPOSITORY
  R120 Plasma Workspace

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

AFFECTED FILES
  applets/notifications/package/contents/ui/NotificationIcon.qml
  applets/notifications/package/contents/ui/main.qml

To: broulik, #plasma, mck182
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170815/a7ffbedf/attachment.html>


More information about the Plasma-devel mailing list