mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Remove viewport_id and parent_viewport_id from Window::show arguments because can be accessed from Context::get_viewport_id and Context::get_parent_viewport_id
This commit is contained in:
@@ -55,7 +55,7 @@ impl eframe::App for MyApp {
|
||||
egui::Window::new("Do you want to quit?")
|
||||
.collapsible(false)
|
||||
.resizable(false)
|
||||
.show(ctx, move |ui, _, _| {
|
||||
.show(ctx, move |ui| {
|
||||
ui.horizontal(|ui| {
|
||||
if ui.button("Cancel").clicked() {
|
||||
data.write().unwrap().show_confirmation_dialog = false;
|
||||
|
||||
Reference in New Issue
Block a user