Show descriptive text when changing containment plugins
ClosedPublic

Authored by davidedmundson on Jan 9 2017, 1:46 AM.

Details

Summary

When one changes containment plugin, the rest of the configuration
options don't apply or in some cases don't work - changing a wallpaper
and containment type will result in the old containment getting updated
only to be immediately destroyed.

Fixing that is quite difficult (I spent a while, but not got anything
tidy).

So instead make an intermediate solution of at least not presenting the
user with broken options.

CCBUG: 355642

Test Plan

Ran it

Diff Detail

Repository
R119 Plasma Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidedmundson retitled this revision from to Show descriptive text when changing containment plugins.
davidedmundson updated this object.
davidedmundson edited the test plan for this revision. (Show Details)
davidedmundson added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptJan 9 2017, 1:46 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript

Screenshot after changing plugin type

restoring previous value restores contents

mart added a subscriber: mart.Jan 10 2017, 3:45 PM

i'm not sure if it's worth to change the architecture for a thing that's used very rarely
even if it's implementation bleeding over to ui, that's fine.

the possible problem, is still the user changing the other stuff before, like wallpaper, and then without pressing apply changes the layout, that would still not be covered i think

the possible problem, is still the user changing the other stuff before, like wallpaper, and then without pressing apply changes the layout, that would still not be covered i think

Yeah, that problem is still there, but it's no worse than the current state, and at least now it shouldn't be a surprise.

+1

desktoppackage/contents/configuration/ConfigurationContainmentAppearance.qml
95

use QQC Label (note the different font rendering in this label compared to the others)

mart accepted this revision.Jan 11 2017, 3:27 PM
mart added a reviewer: mart.

let's go for it, tough i really fear the pain a real solution may be :)

This revision is now accepted and ready to land.Jan 11 2017, 3:27 PM
This revision was automatically updated to reflect the committed changes.
rooty added a subscriber: rooty.Oct 27 2018, 8:05 AM

hey guys don't get mad at me for the necropost (and the nitpicking) but... it really should be "while", not "whilst" for users that use en_US, for the sake of consistency

In D4034#349125, @rooty wrote:

hey guys don't get mad at me for the necropost (and the nitpicking) but... it really should be "while", not "whilst" for users that use en_US, for the sake of consistency

You are correct. Fixed with 64d0815faed992ddf71b788d196878d14d045744.

rooty added a comment.Oct 28 2018, 7:35 AM

nice! props