Adapt Dashboard: Connect to new toggled signal instead of activated signal in order to initiate state change
ClosedPublic

Authored by romangg on Oct 17 2016, 6:41 AM.

Details

Summary

The Dashboard needs to connect to the new toggled signal chain, because this is now instead called by KWin.

Dependent on this diff in plasma-framework: https://git.reviewboard.kde.org/r/129204/
A more extensive description of the problem and the proposed solution can be found there.

Diff Detail

Repository
R119 Plasma Desktop
Lint
Lint Skipped
Unit
Unit Tests Skipped
romangg updated this revision to Diff 7442.Oct 17 2016, 6:41 AM
romangg retitled this revision from to Adapt Dashboard: Connect to new toggled signal instead of activated signal in order to initiate state change.
romangg updated this object.
romangg edited the test plan for this revision. (Show Details)
romangg added reviewers: graesslin, broulik.
romangg set the repository for this revision to R119 Plasma Desktop.
romangg added a project: Plasma.
romangg added a subscriber: Plasma.
Restricted Application added a subscriber: plasma-devel. · View Herald TranscriptOct 17 2016, 6:41 AM

This breaks the normal keyboard shortcut working at all.

You either need to connect to both or

if we put in the addition emit I suggest in https://git.reviewboard.kde.org/r/129204/
and then you don't need this change.

romangg added a comment.EditedOct 17 2016, 8:54 AM

This breaks the normal keyboard shortcut working at all.

You either need to connect to both or

if we put in the addition emit I suggest in https://git.reviewboard.kde.org/r/129204/
and then you don't need this change.

Does it not work on your system? Have you also applied the other diffs on phab mentioned in the reviewboard diff? It shouldn't break the normal keyboard shortcut. It works on my system.

EDIT: Ah yes, only in the Dashboard case! Thanks, I'll look into it.

romangg updated this revision to Diff 7474.Oct 17 2016, 6:51 PM

Adjustements to second revision of the Diff in Plasma-Frameworks on Reviewboard: https://git.reviewboard.kde.org/r/129204/

davidedmundson added inline comments.Oct 18 2016, 8:23 AM
applets/kicker/package/contents/ui/main.qml
47

If you want this to be in Plasma/5.8.x we can't rely on this being available.

Plasma 5.8.x *has* to still work with frameworks 5.26.

You can either go master only

or do the following:

Component.onCompleted: {
if (Plasmoid.hasOwnProperty("shrinkOnReactivation")) {

shrinkOnReactivation = !isDash

}
}

romangg updated this revision to Diff 7515.EditedOct 18 2016, 5:36 PM

Implemented David's condition and using new name of variable.

davidedmundson accepted this revision.Oct 19 2016, 1:58 PM
davidedmundson added a reviewer: davidedmundson.
This revision is now accepted and ready to land.Oct 19 2016, 1:58 PM
This revision was automatically updated to reflect the committed changes.