homescreens/halcyon: Fix FolderGrid loading

This commit is contained in:
Devin Lin 2023-04-11 20:50:04 -07:00
parent c3e85d0823
commit 6fbe8e7e64
2 changed files with 1 additions and 9 deletions

View file

@ -20,8 +20,8 @@ import org.kde.kirigami 2.19 as Kirigami
Item {
id: delegate
property int visualIndex: 0
property real dragFolderAnimationProgress: 0
property list<Kirigami.Action> menuActions

View file

@ -23,9 +23,6 @@ MobileShell.GridView {
property string folderName: folder ? folder.name : ""
property var folderModel: folder ? folder.applications : []
// don't set anchors.margins since we want everywhere to be draggable
required property real leftMargin
required property real rightMargin
required property bool twoColumn
signal openConfigureRequested()
@ -209,11 +206,6 @@ MobileShell.GridView {
}
]
readonly property bool isLeftColumn: !root.twoColumn || ((visualIndex % 2) === 0)
readonly property bool isRightColumn: !root.twoColumn || ((visualIndex % 2) !== 0)
leftPadding: isLeftColumn ? root.leftMargin : 0
rightPadding: isRightColumn ? root.rightMargin : 0
implicitWidth: root.cellWidth
implicitHeight: visible ? root.cellHeight : 0