Skip to content

Commit

Permalink
fix filter update popup
Browse files Browse the repository at this point in the history
  • Loading branch information
pythops committed Sep 26, 2024
1 parent 4cefc72 commit caf61a1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions oryx-tui/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ pub fn handle_key_events(
}

KeyCode::Char('f') => {
if app.focused_block != FocusedBlock::Help && app.start_sniffing {
if app.focused_block != FocusedBlock::Help
&& app.start_sniffing
&& !app.update_filters
{
app.update_filters = true;
app.focused_block = FocusedBlock::TransportFilter;

Expand Down Expand Up @@ -350,7 +353,10 @@ pub fn handle_key_events(
}

KeyCode::Char('f') => {
if app.focused_block != FocusedBlock::Help && app.start_sniffing {
if app.focused_block != FocusedBlock::Help
&& app.start_sniffing
&& !app.update_filters
{
app.update_filters = true;

app.focused_block = FocusedBlock::TransportFilter;
Expand Down

0 comments on commit caf61a1

Please sign in to comment.