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] [dependencies.libcosmic]
git = "https://github.com/pop-os/libcosmic.git" git = "https://github.com/pop-os/libcosmic.git"
default-features = false default-features = false
features = ["tokio", "winit"] features = ["multi-window", "tokio", "winit"]
#path = "../libcosmic" #path = "../libcosmic"
#TODO: clean up and send changes upstream #TODO: clean up and send changes upstream

View file

@ -250,7 +250,7 @@ impl App {
None => (String::new(), "COSMIC File Manager".to_string()), None => (String::new(), "COSMIC File Manager".to_string()),
}; };
self.set_header_title(header_title); 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> { fn update_watcher(&mut self) -> Command<Message> {

View file

@ -123,7 +123,7 @@ impl App {
None => (String::new(), "COSMIC File Manager".to_string()), None => (String::new(), "COSMIC File Manager".to_string()),
}; };
self.set_header_title(header_title); 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> { fn update_watcher(&mut self) -> Command<Message> {

View file

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