[Task Manager] Show "Mark applications that play audio" option only if plasma-pa is available
ClosedPublic

Authored by broulik on Jan 26 2017, 11:42 AM.

Details

Summary

Everywhere else the code assumes plasma-pa might not be around but the config dialog would still show the check box unconditionally. Plasma-pa is not a dependency for Plasma-desktop and you can safely uninstall it (if you prefer e.g. kmix), so we should cover this case.

Test Plan

Uninstalled plasma-pa, setting was gone
Re-installed plasma-pa, setting was there again

Diff Detail

Repository
R119 Plasma Desktop
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik updated this revision to Diff 10581.Jan 26 2017, 11:42 AM
broulik retitled this revision from to [Task Manager] Show "Mark applications that play audio" option only if plasma-pa is available.
broulik updated this object.
broulik edited the test plan for this revision. (Show Details)
broulik added reviewers: Plasma, hein.
broulik set the repository for this revision to R119 Plasma Desktop.
Restricted Application added a project: Plasma. · View Herald TranscriptJan 26 2017, 11:42 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript

Set enable property instead of visible (and always uncheck in case Plasma-pa not avail)?

hein edited edge metadata.Jan 26 2017, 6:38 PM

Maybe greyout and suggest what to install?

I'm actually fine with all three variants, but I think hiding it makes the support story harder - I imagine users talking and one can't find the check box, ...

What about we gray-out the checkbox for now (5.9 series) and for master add a label explaining what's missing (open to wording suggestions)

broulik updated this revision to Diff 10993.Feb 7 2017, 9:22 AM
broulik edited edge metadata.
  • Disable instead of hiding check box
  • if not always show checkbox uncheked

Verified that enabling and disabling the checkbox still enables and disables the setting. If plasma-pa is uninstalled the checkbox stays unchecked but doesn't actually change the setting so when you install it it will magically work again.

hein accepted this revision.Feb 7 2017, 9:57 AM
hein edited edge metadata.

+1

This revision is now accepted and ready to land.Feb 7 2017, 9:57 AM
This revision was automatically updated to reflect the committed changes.