save worksapce in sync
@@ -165,10 +165,7 @@ pub fn save_workspace(&self, data: &LapceTabData) -> Result<()> {
active_editor,
};
- self.save_tx.send(SaveEvent::Workspace(
- (*(workspace.clone())).clone(),
- workspace_info,
- ))?;
+ self.insert_workspace(workspace, &workspace_info)?;
Ok(())
}
