mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
replace FlickableType with ListViewType in PageSettingsLogging
This commit is contained in:
@@ -23,9 +23,15 @@ PageType {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.topMargin: 20
|
||||
|
||||
onFocusChanged: {
|
||||
if (this.activeFocus) {
|
||||
listView.positionViewAtBeginning()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ListView {
|
||||
ListViewType {
|
||||
id: listView
|
||||
|
||||
anchors.top: backButton.bottom
|
||||
@@ -33,10 +39,6 @@ PageType {
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
|
||||
property bool isFocusable: true
|
||||
|
||||
ScrollBar.vertical: ScrollBarType {}
|
||||
|
||||
header: ColumnLayout {
|
||||
width: listView.width
|
||||
|
||||
@@ -101,8 +103,7 @@ PageType {
|
||||
}
|
||||
|
||||
model: logTypes
|
||||
clip: true
|
||||
reuseItems: true
|
||||
|
||||
snapMode: ListView.SnapOneItem
|
||||
|
||||
delegate: ColumnLayout {
|
||||
|
||||
Reference in New Issue
Block a user