Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
45dd09bf
Commit
45dd09bf
authored
Apr 27, 2021
by
Marco Martin
Browse files
Revert "Revert "Save layouts per-resolution""
Crash has been solved in plasma-workspace This reverts commit
1d68bc11
.
parent
07dcff19
Changes
1
Hide whitespace changes
Inline
Side-by-side
containments/desktop/package/contents/ui/main.qml
View file @
45dd09bf
...
...
@@ -277,7 +277,9 @@ FolderViewDropArea {
id
:
appletsLayout
anchors.fill
:
parent
// NOTE: use plasmoid.availableScreenRect and not own width and height as they are updated not atomically
configKey
:
plasmoid
.
availableScreenRect
.
width
>
plasmoid
.
availableScreenRect
.
height
?
"
ItemGeometriesHorizontal
"
:
"
ItemGeometriesVertical
"
configKey
:
"
ItemGeometries-
"
+
Math
.
round
(
plasmoid
.
screenGeometry
.
width
)
+
"
x
"
+
Math
.
round
(
plasmoid
.
screenGeometry
.
height
)
fallbackConfigKey
:
plasmoid
.
availableScreenRect
.
width
>
plasmoid
.
availableScreenRect
.
height
?
"
ItemGeometriesHorizontal
"
:
"
ItemGeometriesVertical
"
containment
:
plasmoid
editModeCondition
:
plasmoid
.
immutable
?
ContainmentLayoutManager
.
AppletsLayout
.
Locked
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment