MCPcopy Create free account
hub / github.com/Moosync/Moosync / export_theme

Method export_theme

src/utils/context_menu.rs:360–370  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

358impl ThemesContextMenu {
359 #[tracing::instrument(level = "debug", skip(self))]
360 fn export_theme(&self) {
361 let id = self.id.clone();
362 if let Some(id) = id {
363 spawn_local(async move {
364 let res = crate::utils::invoke::export_theme(id).await;
365 if let Err(err) = res {
366 tracing::error!("Error exporting theme {:?}", err);
367 }
368 });
369 }
370 }
371
372 fn remove_theme(&self) {
373 let id = self.id.clone();

Callers

nothing calls this directly

Calls 2

export_themeFunction · 0.85
cloneMethod · 0.80

Tested by

no test coverage detected