Combined modal open checks.

This commit is contained in:
MGlolenstine
2023-11-17 15:37:35 +01:00
parent c2ac79c822
commit 3dafa58a1a
+1 -6
View File
@@ -468,11 +468,6 @@ impl eframe::App for BdiffApp {
let goto_modal: Modal = Modal::new(ctx, "goto_modal");
// Standard HexView input
if !goto_modal.is_open() {
self.handle_hex_view_input(ctx);
}
// Goto modal
goto_modal.show(|ui| {
self.show_goto_modal(&goto_modal, ui, ctx);
@@ -486,7 +481,7 @@ impl eframe::App for BdiffApp {
}
// Standard HexView input
if !overwrite_modal.is_open() {
if !(overwrite_modal.is_open() || goto_modal.is_open()) {
self.handle_hex_view_input(ctx);
}