1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

Remove id from ViewportBuilder so it can implement Default

This commit is contained in:
Emil Ernerfeldt
2023-11-14 19:52:28 +01:00
parent 09a728ba34
commit 54f6e6b9ae
6 changed files with 94 additions and 81 deletions

View File

@@ -85,10 +85,9 @@ pub fn window_builder<E>(
..
} = native_options;
let mut viewport_builder = egui::ViewportBuilder::new(ViewportId::ROOT);
let mut viewport_builder = egui::ViewportBuilder::ROOT;
viewport_builder
.with_title(title)
.with_close_button(true) // The default for all other viewports is `false`!
.with_decorations(*decorated)
.with_fullscreen(*fullscreen)
.with_maximized(*maximized)