Skip to content

Commit 0111968

Browse files
committed
🏗️ Refactor settings module for improved extensibility and organization
1 parent 0592939 commit 0111968

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/settings.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -644,16 +644,16 @@ fn render_provider_section(f: &mut Frame, area: Rect, section: &ProviderSection,
644644

645645
// Render fields
646646
for (i, field) in section.fields.iter().enumerate() {
647-
if let Some(field_area) = provider_layout[1].height.checked_sub(i as u16) {
648-
if field_area > 0 {
649-
let field_rect = Rect {
650-
x: provider_layout[1].x,
651-
y: provider_layout[1].y + i as u16,
652-
width: provider_layout[1].width,
653-
height: 1,
654-
};
655-
render_config_field(f, field_rect, field, theme);
656-
}
647+
if let Some(field_area) = provider_layout[1].height.checked_sub(i as u16)
648+
&& field_area > 0
649+
{
650+
let field_rect = Rect {
651+
x: provider_layout[1].x,
652+
y: provider_layout[1].y + i as u16,
653+
width: provider_layout[1].width,
654+
height: 1,
655+
};
656+
render_config_field(f, field_rect, field, theme);
657657
}
658658
}
659659
}

0 commit comments

Comments
 (0)