update home row layout on refresh so we don't need to restart the app after updating setting

This commit is contained in:
Charles Ewert 2024-11-09 11:32:03 -05:00
parent 587e9425aa
commit 5a97f2bdd4
3 changed files with 8 additions and 6 deletions

View File

@ -65,6 +65,9 @@ sub updateSize()
' original layout
m.top.translation = [111, 180]
m.top.itemSize = [1703, 330]
' reset to defaults
m.top.focusXOffset = []
m.top.rowLabelOffset = [0, 20]
end if
end if
@ -73,9 +76,6 @@ sub updateSize()
' spacing between items in a row
m.top.rowItemSpacing = [21, 0]
' Default size to wide poster, the most used size
m.top.rowItemSize = homeRowItemSizes.WIDE_POSTER
m.top.visible = true
end sub
@ -465,6 +465,8 @@ end sub
sub updateHomeRows()
' Hide the row counter to prevent flicker. We'll show it once loading timer fires
m.top.showRowCounter = [false]
m.top.visible = false
updateSize()
processUserSections()
end sub

View File

@ -1327,8 +1327,8 @@
<extracomment>User Setting - Setting title</extracomment>
</message>
<message>
<source>Choose how rows are displayed on the home screen. Jellyfin will need to be closed and reopened for changes to take effect.</source>
<translation>Choose how rows are displayed on the home screen. Jellyfin will need to be closed and reopened for changes to take effect.</translation>
<source>Choose how rows are displayed on the home screen.</source>
<translation>Choose how rows are displayed on the home screen.</translation>
<extracomment>User Setting - Setting description</extracomment>
</message>
<message>

View File

@ -323,7 +323,7 @@
},
{
"title": "Row Layout",
"description": "Choose how rows are displayed on the home screen. Jellyfin will need to be closed and reopened for changes to take effect.",
"description": "Choose how rows are displayed on the home screen.",
"settingName": "ui.row.layout",
"type": "radio",
"default": "fullwidth",