mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-21 21:09:42 +00:00
fix: getting locked out when running script
This commit is contained in:
parent
88d6fd12a2
commit
1ff69c7846
|
@ -186,7 +186,9 @@ impl AppState {
|
|||
pub fn draw(&mut self, frame: &mut Frame) {
|
||||
let terminal_size = frame.area();
|
||||
|
||||
if terminal_size.width < MIN_WIDTH || terminal_size.height < MIN_HEIGHT {
|
||||
if !matches!(self.focus, Focus::FloatingWindow(_)) && terminal_size.width < MIN_WIDTH
|
||||
|| terminal_size.height < MIN_HEIGHT
|
||||
{
|
||||
let warning = Paragraph::new(format!(
|
||||
"Terminal size too small:\nWidth = {} Height = {}\n\nMinimum size:\nWidth = {} Height = {}",
|
||||
terminal_size.width,
|
||||
|
|
Loading…
Reference in New Issue
Block a user