fix(theme): typo and derive PartialEq for ThemeBuilder
This commit is contained in:
parent
6543629f45
commit
3ee829f04f
2 changed files with 13 additions and 11 deletions
|
|
@ -163,16 +163,13 @@ where
|
|||
cosmic_theme::THEME_MODE_ID.into(),
|
||||
cosmic_theme::ThemeMode::version(),
|
||||
)
|
||||
.map(|(_, u)| {
|
||||
tracing::error!("{u:?}");
|
||||
match u {
|
||||
Ok(t) => Message::SystemThemeModeChange(t),
|
||||
Err((errors, t)) => {
|
||||
for e in errors {
|
||||
tracing::error!("{e}");
|
||||
}
|
||||
Message::SystemThemeModeChange(t)
|
||||
.map(|(_, u)| match u {
|
||||
Ok(t) => Message::SystemThemeModeChange(t),
|
||||
Err((errors, t)) => {
|
||||
for e in errors {
|
||||
tracing::error!("{e}");
|
||||
}
|
||||
Message::SystemThemeModeChange(t)
|
||||
}
|
||||
})
|
||||
.map(super::Message::Cosmic),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue