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:
parent
e838616813
commit
7151638f51
1 changed files with 0 additions and 3 deletions
|
|
@ -602,9 +602,6 @@ impl<T: Application> Cosmic<T> {
|
|||
};
|
||||
}
|
||||
Action::SystemThemeModeChange(keys, mode) => {
|
||||
if !keys.contains(&"is_dark") {
|
||||
return iced::Task::none();
|
||||
}
|
||||
if match THEME.lock().unwrap().theme_type {
|
||||
ThemeType::System {
|
||||
theme: _,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue