[plasma/plasma-desktop] containments/desktop/package/contents/ui: Revert "Save layouts per-resolution"

Luca Beltrame null at kde.org
Sat Apr 24 23:16:00 BST 2021


Git commit 1d68bc118a1b0eb0e3ce1bc25c17c781cd6cead5 by Luca Beltrame.
Committed on 24/04/2021 at 22:15.
Pushed by lbeltrame into branch 'master'.

Revert "Save layouts per-resolution"

This reverts commit 1390b55188e032336a9e92fb74bd55260493f1eb.

At least this prevents plasmashell from crashing until a solution is
found.

CCMAIL: notmart at gmail.com
CCMAIL: plasma-devel at kde.org
CCBUG: 436041

M  +1    -3    containments/desktop/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/commit/1d68bc118a1b0eb0e3ce1bc25c17c781cd6cead5

diff --git a/containments/desktop/package/contents/ui/main.qml b/containments/desktop/package/contents/ui/main.qml
index 8960e078b..18c943901 100644
--- a/containments/desktop/package/contents/ui/main.qml
+++ b/containments/desktop/package/contents/ui/main.qml
@@ -277,9 +277,7 @@ FolderViewDropArea {
         id: appletsLayout
         anchors.fill: parent
         // NOTE: use plasmoid.availableScreenRect and not own width and height as they are updated not atomically
-        configKey: "ItemGeometries-" + Math.round(plasmoid.screenGeometry.width) + "x" + Math.round(plasmoid.screenGeometry.height)
-        fallbackConfigKey: plasmoid.availableScreenRect.width > plasmoid.availableScreenRect.height ? "ItemGeometriesHorizontal" : "ItemGeometriesVertical"
-
+        configKey: plasmoid.availableScreenRect.width > plasmoid.availableScreenRect.height ? "ItemGeometriesHorizontal" : "ItemGeometriesVertical"
         containment: plasmoid
         editModeCondition: plasmoid.immutable
                 ? ContainmentLayoutManager.AppletsLayout.Locked


More information about the Plasma-devel mailing list