fix(theme mode subscription): avoid checking the keys because this interferes with the first value from the subscription

the check should be redundant, because we also later check whether the value has changed or not anyway
This commit is contained in:
Ashley Wulber 2025-05-01 18:08:56 -04:00
parent e838616813
commit 811cea8550

View file

@ -602,9 +602,6 @@ impl<T: Application> Cosmic<T> {
}; };
} }
Action::SystemThemeModeChange(keys, mode) => { Action::SystemThemeModeChange(keys, mode) => {
if !keys.contains(&"is_dark") {
return iced::Task::none();
}
if match THEME.lock().unwrap().theme_type { if match THEME.lock().unwrap().theme_type {
ThemeType::System { ThemeType::System {
theme: _, theme: _,