MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / draw_edit_overlay

Function draw_edit_overlay

crates/openshell-tui/src/ui/global_settings.rs:117–127  ·  view source on GitHub ↗
(
    frame: &mut Frame<'_>,
    app: &App,
    edit: &crate::app::SettingEditState,
    area: Rect,
)

Source from the content-addressed store, hash-verified

115}
116
117fn draw_edit_overlay(
118 frame: &mut Frame<'_>,
119 app: &App,
120 edit: &crate::app::SettingEditState,
121 area: Rect,
122) {
123 let Some(entry) = app.global_settings.get(edit.index) else {
124 return;
125 };
126 super::draw_setting_edit_overlay(frame, &entry.key, entry.kind, edit, area, &app.theme);
127}
128
129fn draw_confirm_set(frame: &mut Frame<'_>, app: &App, idx: usize, area: Rect) {
130 let t = &app.theme;

Callers 1

drawFunction · 0.70

Calls 2

getMethod · 0.45

Tested by

no test coverage detected