fix(app): set window title properly with winit

This commit is contained in:
Michael Aaron Murphy 2024-03-19 19:26:39 +01:00
parent d02a4fefff
commit 59e5f2ff38
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -621,7 +621,10 @@ impl<App: Application> ApplicationExt for App {
#[cfg(not(any(feature = "multi-window", feature = "wayland")))]
fn title(&self) -> &str {
&self.core().window.header_title
self.core()
.title
.get(&self.main_window_id())
.map_or("", |s| s.as_str())
}
#[cfg(any(feature = "multi-window", feature = "wayland"))]