Skip to content

Commit

Permalink
place import dialog always in the center of the screen
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddyFunk committed Aug 23, 2023
1 parent db4dbb9 commit d21a80e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/io/import.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use egui::Align2;
use regex::Regex;
use std::path::PathBuf;

Expand Down Expand Up @@ -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:");

Expand Down

0 comments on commit d21a80e

Please sign in to comment.