Enable multi-window feature of libcosmic
This commit is contained in:
parent
2832e6066e
commit
588211adb0
4 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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> {
|
||||||
|
|
|
||||||
|
|
@ -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> {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue