fix: select library screen skipped even we have 2+ libraries
This commit is contained in:
@@ -11,16 +11,27 @@ Item {
|
||||
width: Math.min(0.66 * parent.width, 320)
|
||||
height: parent.height
|
||||
|
||||
ListView {
|
||||
id: listView
|
||||
clip: true
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
model: AppController.foldersModel
|
||||
delegate: ItemDelegate {
|
||||
text: model.display
|
||||
width: listView.width
|
||||
ListView {
|
||||
id: listView
|
||||
clip: true
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
model: AppController.foldersModel
|
||||
delegate: ItemDelegate {
|
||||
text: model.display
|
||||
width: listView.width
|
||||
onClicked: function() {
|
||||
AppController.updateComicsInFolder(model.folderId)
|
||||
}
|
||||
}
|
||||
}
|
||||
Button {
|
||||
Layout.fillWidth: true
|
||||
text: "Select Library"
|
||||
onClicked: function() {
|
||||
AppController.updateComicsInFolder(model.folderId)
|
||||
AppController.selectedLibraryId = -1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user