mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
[egui_glium] Restore window position when starting app
This commit is contained in:
@@ -60,7 +60,13 @@ fn create_display(
|
||||
.with_stencil_buffer(0)
|
||||
.with_vsync(true);
|
||||
|
||||
glium::Display::new(window_builder, context_builder, &event_loop).unwrap()
|
||||
let display = glium::Display::new(window_builder, context_builder, &event_loop).unwrap();
|
||||
|
||||
if let Some(window_settings) = &window_settings {
|
||||
window_settings.restore_positions(&display);
|
||||
}
|
||||
|
||||
display
|
||||
}
|
||||
|
||||
fn create_storage(app_name: &str) -> Option<Box<dyn egui::app::Storage>> {
|
||||
|
||||
Reference in New Issue
Block a user