From d21a80ec06eb44f84ef116cfb0cd5e3f354402bb Mon Sep 17 00:00:00 2001 From: FreddyFunk <27208977+FreddyFunk@users.noreply.github.com> Date: Wed, 23 Aug 2023 17:51:21 +0200 Subject: [PATCH] place import dialog always in the center of the screen --- src/io/import.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/io/import.rs b/src/io/import.rs index 583a761..55da49e 100644 --- a/src/io/import.rs +++ b/src/io/import.rs @@ -1,3 +1,4 @@ +use egui::Align2; use regex::Regex; use std::path::PathBuf; @@ -153,6 +154,8 @@ impl Importer { .resizable(false) .collapsible(false) .enabled(!self.loading) + .anchor(Align2::CENTER_CENTER, egui::Vec2::default()) + .movable(false) .show(ctx, |ui| { ui.label("Review and add missing metadata to continue:");