MCPcopy Create free account
hub / github.com/PerroEngine/Perro / apply_script_reload_popup

Function apply_script_reload_popup

perro_editor/res/scripts/ui/editor_ui.rs:3661–3668  ·  view source on GitHub ↗
(
    ctx: &mut ScriptContext<'_, API>,
    visible: bool,
)

Source from the content-addressed store, hash-verified

3659 if parent.is_empty() {
3660 return true;
3661 }
3662 file_ancestor_folders(path)
3663 .into_iter()
3664 .all(|folder| expanded_paths.iter().any(|item| item == &folder))
3665}
3666
3667pub fn file_ancestor_folders(path: &str) -> Vec<String> {
3668 let mut out = Vec::new();
3669 let mut cursor = parent_res_folder(path);
3670 while !cursor.is_empty() {
3671 out.push(cursor.clone());

Callers 3

refresh_chrome_viewFunction · 0.85
refresh_status_viewFunction · 0.85

Calls 3

set_panel_displayFunction · 0.85
set_ui_displayFunction · 0.85

Tested by

no test coverage detected