fix: hide hidden libraries on the home screen

close #145
This commit is contained in:
edde746
2025-12-05 14:08:04 +01:00
parent 4eed2aa3d2
commit 6db21d93bb
2 changed files with 17 additions and 2 deletions
@@ -134,6 +134,7 @@ class DataAggregationService {
Future<List<PlexHub>> getHubsFromAllServers({
int? limit,
Map<String, List<PlexLibrary>>? librariesByServer,
Set<String>? hiddenLibraryKeys,
}) async {
final clients = _serverManager.onlineClients;
@@ -171,6 +172,11 @@ class DataAggregationService {
if (library.hidden != null && library.hidden != 0) {
return false;
}
// Check app-level hidden libraries
if (hiddenLibraryKeys != null &&
hiddenLibraryKeys.contains(library.globalKey)) {
return false;
}
return true;
}).toList();