From 3dafa58a1a5f4c368252696c0e2b801c17fac007 Mon Sep 17 00:00:00 2001 From: MGlolenstine Date: Fri, 17 Nov 2023 15:37:35 +0100 Subject: [PATCH] Combined modal open checks. --- src/app.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/app.rs b/src/app.rs index 7bc3350..52d3a74 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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); }