Watch for installation of kipi-plugins only when needed

Authored by rkflx on May 31 2018, 3:34 PM.

Description

Watch for installation of kipi-plugins only when needed

Summary:
When kipi-plugins was not installed and the user clicked on the
Plugins menu at least once, a filesystem watcher was added
unconditionally. This resulted in a huge amount of signals and
unnecessary updates in Gwenview as soon as any software installation
took place. In particular this was bad for packages with lots of files
like the kernel headers.

It's enough to add the watcher only in case the user actively clicked on
Install Plugins.

FIXED-IN: 18.04.2

Test Plan:
Remove kipi-plugins, make sure Discover is installed, start
Gwenview and click on PluginsInstall Plugins. Check that the
list of plugins still updates itself as soon as the installation
completes successfully.

Reviewers: Gwenview, ngraham

Reviewed By: ngraham

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

Details

Committed
rkflxJun 2 2018, 6:16 AM
Reviewer
ngraham
Differential Revision
D13250: Watch for installation of kipi-plugins only when needed
Parents
R260:46b4ff47d840: GIT_SILENT Upgrade KDE Applications version to 18.04.2.
Branches
Unknown
Tags
Unknown