Make the notifications less obtrusive

Authored by bruns on Jun 22 2019, 9:04 PM.

Description

Make the notifications less obtrusive

Summary:
Currently, whenever the PK package cache is refreshed, a new notification
is show, even when the update count does not change. The notification
also persists after the update has installed.

To make the notifications less obtrusive:

  1. Skip the "You have N new updates" message generation completely when the update count is unchanged.
  2. In case the update count changes, close the old one generate a new one. Using "CloseOnTimeout" has the
  3. Change the "Updates Installed" notification from "Persistent" to "CloseOnTimeout". The notification is still in the history.
  4. After update installation, also remove the "You have N new updates" Popup.

Depends on D22026

Test Plan: call pkcon refresh multiple times

Reviewers: jgrulich, lukas, ngraham, fvogt

Reviewed By: ngraham, fvogt

Differential Revision: https://phabricator.kde.org/D22027

Details

Committed
brunsJun 23 2019, 9:42 PM
Reviewer
ngraham
Differential Revision
D22027: Make the notifications less obtrusive
Parents
R623:7268a2da05f8: Use own eventIds and ComponentName instead of generic plasma workspace ones
Branches
Unknown
Tags
Unknown