[Task Manager] Don't show redundant "Actions" header in context menu with nothing but actions in it
ClosedPublic

Authored by ngraham on Apr 26 2019, 3:10 PM.

Details

Summary

Previously, the Actions header was always shown, even when the context menu
consisted of nothing but actions. This is unnecessary since a menu's normal state is
to show nothing but actions.

With this patch, the Actions header is only shown for context menus that have
more than one section.

Test Plan

Context menu with only actions:

Context menu with nore than just actions:

Diff Detail

Repository
R119 Plasma Desktop
Branch
dont-show-redundant-action-header (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 11260
Build 11278: arc lint + arc unit
ngraham created this revision.Apr 26 2019, 3:10 PM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 26 2019, 3:10 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ngraham requested review of this revision.Apr 26 2019, 3:10 PM
apol added a reviewer: hein.Apr 26 2019, 11:25 PM
hein accepted this revision.Apr 26 2019, 11:29 PM
This revision is now accepted and ready to land.Apr 26 2019, 11:29 PM
This revision was automatically updated to reflect the committed changes.