qml: only use ListView.InlineHeader when at 'Video' homepage with recentVideos visible

This commit is contained in:
Leon Vitanos 2024-01-15 19:21:52 +01:00 committed by Jean-Baptiste Kempf
parent 35c6803f5e
commit 603722cbac
3 changed files with 7 additions and 1 deletions

View File

@ -43,6 +43,8 @@ MainInterface.MainViewLoader {
property Item headerItem: Helpers.get(currentItem, "headerItem", null)
property int headerPositioning: ListView.OverlayHeader
readonly property int currentIndex: Helpers.get(currentItem, "currentIndex", -1)
// 'role' used for tableview's section text
@ -186,7 +188,7 @@ MainInterface.MainViewLoader {
header: root.header
headerPositioning: ListView.InlineHeader
headerPositioning: root.headerPositioning
activeFocusOnTab: true

View File

@ -60,6 +60,8 @@ VideoAll {
sectionProperty: !!_meta && !!_meta.sectionProperty ? _meta.sectionProperty : ""
headerPositioning: headerItem.model.count > 0 ? ListView.InlineHeader : ListView.OverlayHeader
// Functions
function _updateMetaModel(groupping) {

View File

@ -41,6 +41,8 @@ FocusScope {
property int rightPadding: VLCStyle.margin_xsmall
property int nbItemPerRow
property alias model: recentModel
// Settings