A photo manager for VRChat.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

1use tauri::State; 2 3use crate::util::cache::Cache; 4use std::{ fs, thread }; 5 6// Delete a photo when the users confirms the prompt in the ui 7#[tauri::command] 8pub fn delete_photo(path: String, cache: State<Cache>) { 9 let photo_path = cache.get("photo-path".into()); 10 11 thread::spawn(move || { 12 let p = photo_path.unwrap() + "/" + &path; 13 fs::remove_file(p).unwrap(); 14 }); 15}