(&mut self, id: Uuid, cx: &mut Context<Self>)
| 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; |
no test coverage detected