Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/ItemGrid/LoadItemsTask2.bs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sub init()
m.top.sortField = "SortName"
m.top.functionName = "loadItems"

m.top.limit = 60
m.top.limit = chainLookupReturn(m.global.session, "user.settings.`ui.library.loadItemsLimit`", 60)
end sub

sub loadItems()
Expand Down
4 changes: 4 additions & 0 deletions components/settings/settings.bs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ sub onKeyGridSubmit()
m.integerSetting.text = selectedSetting.max
return
end if
if isValid(selectedSetting.min) and m.integerSetting.text.ToInt() < selectedSetting.min.ToInt()
m.integerSetting.text = selectedSetting.min
return
end if
set_user_setting(selectedSetting.settingName, m.integerSetting.text)
m.settingsMenu.setFocus(true)
end sub
Expand Down
12 changes: 11 additions & 1 deletion locale/en_US/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,16 @@
<translation>Number of columns in library view when showing square images</translation>
<extracomment>Libraries Setting - Setting description</extracomment>
</message>
<message>
<source>Load Items Limit</source>
<translation>Load Items Limit</translation>
<extracomment>Libraries Setting - Setting title</extracomment>
</message>
<message>
<source>Number of items to load together on library screens.</source>
<translation>Number of items to load together on library screens.</translation>
<extracomment>Libraries Setting - Setting description</extracomment>
</message>

<message>
<source>View All Next Up</source>
Expand Down Expand Up @@ -2318,4 +2328,4 @@
<translation>Screen Settings</translation>
</message>
</context>
</TS>
</TS>
10 changes: 9 additions & 1 deletion settings/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,14 @@
}
]
},
{
"title": "Load Items Limit",
"description": "Number of items to load together on library screens.",
"settingName": "ui.library.loadItemsLimit",
"type": "integer",
"min": "15",
"default": "60"
},
{
"title": "TV Shows",
"description": "Settings relating to the appearance of pages in TV Libraries.",
Expand Down Expand Up @@ -1334,4 +1342,4 @@
"visible": false,
"children": []
}
]
]
6 changes: 5 additions & 1 deletion source/static/whatsNew/3.1.8.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@
{
"description": "Fix videos sometimes loading twice",
"author": "gabeluci"
},
{
"description": "Add setting to select how many items are loaded together on library screens",
"author": "brianpardy"
}
]
]