diff --git a/Cargo.toml b/Cargo.toml index 8b4beb9..8e2e2fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ chrono = { version = "0.4.38", features = ["serde"] } [dependencies.libcosmic] git = "https://github.com/pop-os/libcosmic.git" default-features = false -features = ["multi-window", "tokio", "winit", "wgpu", "about"] +features = ["tokio", "winit", "wgpu", "about"] [dependencies.cosmic-ext-config-templates] git = "https://github.com/ryanabx/cosmic-ext-config-templates" diff --git a/src/app.rs b/src/app.rs index 827bfbf..7cb5681 100644 --- a/src/app.rs +++ b/src/app.rs @@ -227,9 +227,7 @@ impl Application for TweakTool { )), ]; - if let Some(id) = app.core.main_window_id() { - tasks.push(app.set_window_title(fl!("app-title"), id)); - } + tasks.push(app.set_window_title(fl!("app-title"))); (app, Task::batch(tasks)) } @@ -271,17 +269,13 @@ impl Application for TweakTool { ) -> cosmic::iced::Task> { self.nav_model.activate(id); - let Some(win_id) = self.core.main_window_id() else { - return Task::none(); - }; - let title = if let Some(page) = self.nav_model.data::(id) { format!("{} - {}", page.title(), fl!("app-title")) } else { fl!("app-title") }; - Task::batch(vec![self.set_window_title(title, win_id)]) + Task::batch(vec![self.set_window_title(title)]) } fn context_drawer(&self) -> Option> {