···5454 - Move away from localstorage and use the .config file
5555 - Seems to be semi-stable on linux
5656 - Update deeplink library
5757- - Fix bugs with multiple screens displaying on frontend5757+ - Fix bugs with multiple screens displaying on frontend
5858+ - Fix caching issues with photo paths
5959+ - Fix VRCPM using way to many resources while being minimised after starting in the background
+8-4
src-tauri/src/frontend_calls/delete_photo.rs
···11-use crate::util::get_photo_path::get_photo_path;
22-use std::{fs, thread, time::Duration};
11+use tauri::State;
22+33+use crate::util::cache::Cache;
44+use std::{ fs, thread, time::Duration };
3546// Delete a photo when the users confirms the prompt in the ui
57#[tauri::command]
66-pub fn delete_photo(path: String, token: String, is_syncing: bool) {
88+pub fn delete_photo(path: String, token: String, is_syncing: bool, cache: State<Cache>) {
99+ let photo_path = cache.get("photo-path".into());
1010+711 thread::spawn(move || {
88- let p = get_photo_path().join(&path);
1212+ let p = photo_path.unwrap() + "/" + &path;
913 fs::remove_file(p).unwrap();
10141115 let photo = path.split("/").last().unwrap();