fix(ui): fixed input mask on host bridge on local dir up

if you go up on local dir when localhost is selected it panics

fix #327
This commit is contained in:
veeso
2025-03-15 14:24:24 +01:00
parent 5c4a971aca
commit dd35fe825c

View File

@@ -252,7 +252,10 @@ impl AuthActivity {
UiMsg::HostBridge(UiAuthFormMsg::LocalDirectoryBlurUp) => {
assert!(
self.app
.active(&Id::HostBridge(AuthFormId::RemoteDirectory))
.active(match self.host_bridge_input_mask() {
InputMask::Localhost => &Id::HostBridge(AuthFormId::Protocol),
_ => &Id::HostBridge(AuthFormId::RemoteDirectory),
})
.is_ok()
);
}