Refactor
This commit is contained in:
parent
70a70af859
commit
00cb8f7a9b
4 changed files with 41 additions and 27 deletions
|
|
@ -75,7 +75,7 @@ fn render_group(frame: &mut Frame, area: Rect, group: &GroupViewState, is_first_
|
|||
.constraints([Constraint::Length(1), Constraint::Min(1)])
|
||||
.split(area);
|
||||
|
||||
if chunks[0].height <= 0 || chunks[1].height <= 0 || group.monitors.is_empty() {
|
||||
if chunks[0].height == 0 || chunks[1].height == 0 || group.monitors.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue