Fixed failling tests
This commit is contained in:
parent
ea39983f78
commit
2802e3a1c6
3 changed files with 6 additions and 7 deletions
|
@ -45,7 +45,7 @@ impl ThemeSelector {
|
|||
let original_theme = settings.theme.clone();
|
||||
|
||||
let mut theme_names = registry
|
||||
.list(**cx.global::<StaffMode>())
|
||||
.list(**cx.try_global::<StaffMode>().unwrap_or(&StaffMode(false)))
|
||||
.collect::<Vec<_>>();
|
||||
theme_names.sort_unstable_by(|a, b| {
|
||||
a.is_light
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue