theme: Remove unused staff
parameter for listing themes (#20077)
This PR removes the `staff` parameter for listing themes, as it was not used. Release Notes: - N/A
This commit is contained in:
parent
af9e7f1f96
commit
a960344301
11 changed files with 13 additions and 23 deletions
|
@ -711,7 +711,7 @@ impl settings::Settings for ThemeSettings {
|
|||
) -> schemars::schema::RootSchema {
|
||||
let mut root_schema = generator.root_schema_for::<ThemeSettingsContent>();
|
||||
let theme_names = <dyn ThemeRegistry>::global(cx)
|
||||
.list_names(params.staff_mode)
|
||||
.list_names()
|
||||
.into_iter()
|
||||
.map(|theme_name| Value::String(theme_name.to_string()))
|
||||
.collect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue