Commit aa4ddf8a authored by Yari Polla's avatar Yari Polla
Browse files

change property name

parent fb8494fe
Pipeline #180820 passed with stage
in 1 minute and 7 seconds
......@@ -56,9 +56,10 @@ Item {
property bool opened: false
/**
* Whether the panel can be opened with one stroke.
* Whether the panel should open to pinned mode first, with a second stroke needed to full open.
* Only applies to portrait mode.
*/
property bool expandable: false
property bool openToPinnedMode: true
/**
* Direction the panel is currently moving in.
......@@ -114,7 +115,7 @@ Item {
offset = 0;
}
if (offset >= contentContainerLoader.minimizedQuickSettingsOffset && expandable) {
if (offset >= contentContainerLoader.minimizedQuickSettingsOffset && !openToPinnedMode) {
root.opened = true;
}
......
......@@ -44,7 +44,7 @@ MouseArea {
onPressed: {
oldMouseY = mouse.y;
actionDrawer.expandable = mouse.x < root.width/2 ? true : false;
actionDrawer.openToPinnedMode = mouse.x < root.width/2 ? false : true;
startSwipe();
}
......
Supports Markdown
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