MCPcopy Create free account
hub / github.com/bajrangCoder/setu / toggle_collection_expanded

Method toggle_collection_expanded

src/entities/collections.rs:482–489  ·  view source on GitHub ↗
(&mut self, id: Uuid, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

480 };
481 persistor.schedule_save(store);
482 }
483 }
484
485 pub fn set_active_workspace(&mut self, workspace_id: Uuid, cx: &mut Context<Self>) {
486 if workspace_id == self.active_workspace_id {
487 return;
488 }
489 let previous = std::mem::take(&mut self.collections);
490 self.workspace_collections
491 .insert(self.active_workspace_id, previous);
492 self.active_workspace_id = workspace_id;

Callers 1

Calls 1

save_to_fileMethod · 0.45

Tested by

no test coverage detected