chore: Fix compilation warnings on non-Linux

This commit is contained in:
Kamil Jarosz 2024-09-18 11:34:43 +02:00 committed by TÖRÖK Attila
parent e468047ec5
commit bade6dd50c
1 changed files with 2 additions and 1 deletions

View File

@ -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<dyn Error>> {
use futures::StreamExt;
let Some(ref connection) = this.data().zbus_connection else {
return Ok(());
};