feat(app): set header title seperately from window title

This change will enable applications to set different titles for each
This commit is contained in:
Michael Aaron Murphy 2023-09-13 15:26:51 +02:00 committed by Michael Murphy
parent 02413e5fa6
commit 9552916a59
2 changed files with 4 additions and 1 deletions

View file

@ -269,7 +269,7 @@ impl<App: Application> ApplicationExt for App {
.push_maybe(if core.window.show_headerbar {
Some({
let mut header = crate::widget::header_bar()
.title(self.title())
.title(&core.window.header_title)
.on_drag(Message::Cosmic(cosmic::Message::Drag))
.on_close(Message::Cosmic(cosmic::Message::Close));