Enable multi-window feature of libcosmic

This commit is contained in:
Jeremy Soller 2024-02-01 19:40:37 -07:00
parent 2832e6066e
commit 588211adb0
4 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@ rust-embed = "8"
[dependencies.libcosmic]
git = "https://github.com/pop-os/libcosmic.git"
default-features = false
features = ["tokio", "winit"]
features = ["multi-window", "tokio", "winit"]
#path = "../libcosmic"
#TODO: clean up and send changes upstream

View file

@ -250,7 +250,7 @@ impl App {
None => (String::new(), "COSMIC File Manager".to_string()),
};
self.set_header_title(header_title);
self.set_window_title(window_title)
self.set_window_title(window_title, window::Id::MAIN)
}
fn update_watcher(&mut self) -> Command<Message> {

View file

@ -123,7 +123,7 @@ impl App {
None => (String::new(), "COSMIC File Manager".to_string()),
};
self.set_header_title(header_title);
self.set_window_title(window_title)
self.set_window_title(window_title, window::Id::MAIN)
}
fn update_watcher(&mut self) -> Command<Message> {

View file

@ -15,7 +15,7 @@ use app::{App, Flags};
mod app;
use config::{Config, CONFIG_VERSION};
mod config;
mod dialog;
pub mod dialog;
mod key_bind;
mod localize;
mod menu;