Skip to content

Commit

Permalink
chore: update libcosmic
Browse files Browse the repository at this point in the history
  • Loading branch information
edfloreshz committed Nov 3, 2024
1 parent 4be866b commit 8ef5f11
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 21 deletions.
36 changes: 18 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tokio = { version = "1.37.0", features = ["full"] }
[dependencies.libcosmic]
git = "https://github.com/pop-os/libcosmic.git"
default-features = false
features = ["dbus-config", "tokio", "winit", "wgpu"]
features = ["dbus-config", "tokio", "winit", "wgpu", "multi-window"]

[dependencies.i18n-embed]
version = "0.14"
Expand Down
8 changes: 6 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,13 @@ impl Application for Calculator {
toasts: widget::toaster::Toasts::new(Message::CloseToast),
};

let set_window_title = app.set_window_title(fl!("app-title"));
let mut tasks = vec![];

(app, set_window_title)
if let Some(id) = app.core.main_window_id() {
tasks.push(app.set_window_title(fl!("app-title"), id));
}

(app, Task::batch(tasks))
}

fn header_start(&self) -> Vec<Element<Self::Message>> {
Expand Down

0 comments on commit 8ef5f11

Please sign in to comment.