Commit b0404f25 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵 Committed by Nate Graham
Browse files

remove unused parameters in slots of ViewManager

clean a bit more the interface of ViewManager to no longer makes use of
configuration data or explicit usage of the enum with the list of view
types

should allow to really handle arbitrary navigation and allow to
configure the list of views
parent 6a4a8117
......@@ -38,7 +38,7 @@ RowLayout {
viewManager.openChildView(name, '', elisaTheme.artistIcon, 0, ElisaUtils.Artist)
}
function openAlbum(album, artist, image, albumID, showDiscHeader) {
function openAlbum(album, artist, image, albumID) {
image = !image ? elisaTheme.defaultAlbumImage : image;
viewManager.openChildView(album, artist, image, albumID, ElisaUtils.Album);
}
......
......@@ -40,7 +40,7 @@ FocusScope {
signal enqueue(int databaseId, string name)
signal replaceAndPlay(int databaseId, string name)
signal open(string innerMainTitle, string innerSecondaryTitle, url innerImage, int databaseId, var dataType, var showDiscHeader)
signal open(string innerMainTitle, string innerSecondaryTitle, url innerImage, int databaseId, var dataType)
signal goBack()
ColumnLayout {
......@@ -149,7 +149,7 @@ FocusScope {
onReplaceAndPlay: gridView.replaceAndPlay(databaseId, name)
onOpen: gridView.open(model.display, model.secondaryText,
(model && model.imageUrl && model.imageUrl.toString() !== "" ? model.imageUrl : defaultIcon),
model.databaseId, model.dataType, (model.isSingleDiscAlbum ? ViewManager.NoDiscHeaders : ViewManager.DiscHeaders))
model.databaseId, model.dataType)
onSelected: {
forceActiveFocus()
contentDirectoryView.currentIndex = model.index
......
Markdown is supported
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