mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Add Frame::set_window_title() (#828)
* Add `Frame::set_window_title()` * Changelog and fmt for `Frame::set_window_title()` Co-authored-by: Caleb Smith <caleb@myrvmail.com>
This commit is contained in:
@@ -59,6 +59,7 @@ pub fn handle_app_output(
|
||||
let epi::backend::AppOutput {
|
||||
quit: _,
|
||||
window_size,
|
||||
window_title,
|
||||
decorated,
|
||||
drag_window,
|
||||
} = app_output;
|
||||
@@ -77,6 +78,10 @@ pub fn handle_app_output(
|
||||
);
|
||||
}
|
||||
|
||||
if let Some(window_title) = window_title {
|
||||
window.set_title(&window_title);
|
||||
}
|
||||
|
||||
if drag_window {
|
||||
let _ = window.drag_window();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user