Skip to content

Commit

Permalink
Wrap theme_watcher subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
rickykresslein committed Oct 10, 2024
1 parent e715171 commit 97a4c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ impl Furtherance {
// Live dark-light theme switching does not currently work on macOS
#[cfg(not(target_os = "macos"))]
let theme_watcher = if self.fur_settings.theme == FurDarkLight::Auto {
iced::time::every(time::Duration::from_secs(10)).map(|_| Message::ChangeTheme)
Some(iced::time::every(time::Duration::from_secs(10)).map(|_| Message::ChangeTheme))
} else {
None
};
Expand Down

0 comments on commit 97a4c3c

Please sign in to comment.