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

Function load_recent_projects

perro_editor/res/scripts/ui/editor_ui.rs:4936–4948  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4934 } else {
4935 (0.0, 0.0, state.ui_canvas_zoom.max(0.25))
4936 };
4937 let layout_key = (state.bottom_dock_open as u32)
4938 | ((state.anim_drawer_open as u32) << 1)
4939 | ((state.distraction_free as u32) << 2);
4940 let unchanged = state.canvas_memo_valid
4941 && state.canvas_memo_mode == state.viewport_mode
4942 && state.canvas_memo_pan_x == pan_x
4943 && state.canvas_memo_pan_y == pan_y
4944 && state.canvas_memo_zoom == zoom
4945 && state.canvas_memo_layout == layout_key
4946 && state.canvas_memo_aspect == window_aspect;
4947 if !unchanged {
4948 state.canvas_memo_valid = true;
4949 state.canvas_memo_mode = state.viewport_mode.clone();
4950 state.canvas_memo_pan_x = pan_x;
4951 state.canvas_memo_pan_y = pan_y;

Callers 2

refresh_recent_projectsFunction · 0.85
add_recent_projectFunction · 0.85

Calls 7

parse_recent_projectsFunction · 0.85
validate_project_rootFunction · 0.85
save_recent_projectsFunction · 0.85
anyMethod · 0.80
load_stringFunction · 0.50
iterMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected