Commit 1123cc4d authored by David Edmundson's avatar David Edmundson

[desktoppackage] Fix layout when an applet has no custom config modules

Summary:
There was some broken code to hide the sidebar when we only have one
module. However at some point it seems half was removed, half wasn't.

This leads to the content overlapping the sidebar frame, but the sidebar
was invisible and it looks generally broken.

This patch completes the removal.

BUG: 410770

Test Plan:
Opened touchpad KCM
Saw the one module (keyboard shortcuts)
Sidebar was visible, and nothing was overlapping

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: broulik, ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27398
parent 6ef03d63
......@@ -164,7 +164,7 @@ Rectangle {
id: categoriesScroll
QtControls.ScrollBar.horizontal.policy: QtControls.ScrollBar.AlwaysOff
Layout.fillHeight: true
visible: (configDialog.configModel ? configDialog.configModel.count : 0) + globalConfigModel.count > 1
visible: true
Layout.maximumWidth: units.gridUnit * 7
Layout.preferredWidth: categories.implicitWidth
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment