INNER CODE UNIT · Rust

adapter_block_height

pythops/bluetui · src/app.rs:661

            let adapter_block_height = self.controllers.len() as u16 + 4;

            let [
                paired_devices_block,
                new_devices_block,
                controller_block,
                help_block,
            ] = Layout::vertical(if render_new_devices {
                [
                    Constraint::Min(4),
                    Constraint::Min(4),
                    Constraint::Length(adapter_block_height),
                    Constraint::Length(2),
                ]
            } else {
                [
                    Constraint::Fill(1),
                    Constraint::Length(0),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…