diff --git a/desktop/src/gui/theme.rs b/desktop/src/gui/theme.rs index 370b068eb..a5cfbdce0 100644 --- a/desktop/src/gui/theme.rs +++ b/desktop/src/gui/theme.rs @@ -2,7 +2,6 @@ use crate::dbus::{ColorScheme, FreedesktopSettings}; use crate::preferences::GlobalPreferences; use egui::Context; -use futures::StreamExt; use std::error::Error; use std::str::FromStr; use std::sync::{Arc, Weak}; @@ -68,6 +67,8 @@ impl ThemeController { #[cfg(target_os = "linux")] async fn start_dbus_theme_watcher_linux(&self) { async fn start_inner(this: &ThemeController) -> Result<(), Box> { + use futures::StreamExt; + let Some(ref connection) = this.data().zbus_connection else { return Ok(()); };