Add 'hide_display_names' config option
This commit is contained in:
committed by
Henrik Friedrichsen
parent
0cb1aa5d96
commit
ed10872ca3
@@ -61,7 +61,19 @@ impl LibraryView {
|
||||
|
||||
Self {
|
||||
tabs: tabview,
|
||||
display_name: library.display_name.clone(),
|
||||
display_name: {
|
||||
let hide_username = library
|
||||
.cfg
|
||||
.values()
|
||||
.hide_display_names
|
||||
.clone()
|
||||
.unwrap_or(false);
|
||||
if hide_username {
|
||||
None
|
||||
} else {
|
||||
library.display_name.clone()
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user