mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-21 21:09:42 +00:00
Merge remote-tracking branch 'origin/min-tui' into optimization
This commit is contained in:
commit
1044517d8e
|
@ -251,7 +251,8 @@ impl AppState {
|
|||
}
|
||||
|
||||
fn is_terminal_drawable(&mut self, terminal_size: Rect) -> bool {
|
||||
!self.size_bypass && (terminal_size.height < MIN_HEIGHT || terminal_size.width < MIN_WIDTH)
|
||||
!(self.size_bypass || matches!(self.focus, Focus::FloatingWindow(_)))
|
||||
&& (terminal_size.height < MIN_HEIGHT || terminal_size.width < MIN_WIDTH)
|
||||
}
|
||||
|
||||
pub fn draw(&mut self, frame: &mut Frame) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user