fix: select library screen skipped even we have 2+ libraries
This commit is contained in:
@@ -25,11 +25,6 @@ Control {
|
||||
AppController.selectedLibraryId = model.libraryId
|
||||
}
|
||||
}
|
||||
onCountChanged: function() {
|
||||
if (count == 1) {
|
||||
AppController.selectedLibraryId = model.data(modelIndex(0), LibraryItem.IdRole)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,4 +32,13 @@ Control {
|
||||
AppController.updateLibraries()
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: AppController
|
||||
onLibrariesLoaded: function(count) {
|
||||
if (count === 1) {
|
||||
AppController.selectedLibraryId = model.data(modelIndex(0), LibraryItem.IdRole)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user