index : nmrs-tui
A fast, Vim-friendly NetworkManager TUI built in Rust.
about summary refs log tree commit diff
author y2w8 <yo2w86@gmail.com> 2026-07-08 17:09:22 +0300
committer Yousef Al-Harbi <yo2w86@gmail.com> 2026-07-08 17:12:52 +0300
commit 0f8492841d4975162c86cfd91a85fe360704b6b9 [patch]
tree d610ba35e436e70b16f4f8d947ede3b7aeac1777
parent 6bf1e79d5571a4ba120bf302b785091241853778
download 0f8492841d4975162c86cfd91a85fe360704b6b9.tar.gz

fix: Stop scaning when password popup is open.

This fix the bug that the selected changed when in password popup.

Diffstat

-rw-r--r-- src/action.rs 12
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/action.rs b/src/action.rs
index 4864ff6..ade4d4f 100644
--- a/src/action.rs
+++ b/src/action.rs
@@ -4,7 +4,7 @@
use tokio::sync::mpsc::{self, UnboundedReceiver, UnboundedSender};

use crate::{
    app::{App, Focus, Tabs},
    app::{App, Focus, Popups, Tabs},
    ui::{
        input::InputMode,
        toast::{Toast, Urgency},
@@ -126,6 +126,16 @@
                    debug!("Set focus to: {:?}!", new_focus);
                    app.last_focus = app.focus;
                    app.focus = new_focus;
                    match new_focus {
                        Focus::Popup(popup) => {
                            if popup == Popups::Password {
                                app.scan.disable();
                            } else {
                                app.scan.enable();
                            }
                        }
                        Focus::Tab(_) => app.scan.enable(),
                    }
                }
                Action::SetInputMode(new_inputmode) => {
                    debug!("Set InputMode to: {:?}!", new_inputmode);