A photo manager for VRChat.

add --background argument

Changed files
+21 -4
src
src-tauri
+4 -1
changelog
··· 40 40 - main.rs is no longer like 400 quintillion lines long 41 41 42 42 Hotfix 1: 43 - - Fixed photos with legacy naming scheme not loading 43 + - Fixed photos with legacy naming scheme not loading 44 + 45 + Hotfix 2: 46 + - Added --background flag to always start in background
+1 -1
src-tauri/Cargo.lock
··· 4892 4892 4893 4893 [[package]] 4894 4894 name = "vrcpm-rs" 4895 - version = "0.2.0-hot1" 4895 + version = "0.2.0-hot2" 4896 4896 dependencies = [ 4897 4897 "dirs", 4898 4898 "fast_image_resize",
+1 -1
src-tauri/Cargo.toml
··· 1 1 [package] 2 2 name = "vrcpm-rs" 3 - version = "0.2.0-hot1" 3 + version = "0.2.0-hot2" 4 4 description = "VRChat Photo Manager" 5 5 authors = ["_phaz"] 6 6 edition = "2021"
+13 -1
src-tauri/src/frontend_calls/close_splashscreen.rs
··· 1 1 use tauri::Manager; 2 + use std::env; 2 3 3 4 #[tauri::command] 4 5 pub fn close_splashscreen(window: tauri::Window) { 5 - window.get_webview_window("main").unwrap().show().unwrap(); 6 + let args: Vec<String> = env::args().collect(); 7 + 8 + let mut show = true; 9 + for arg in args { 10 + if arg == "--background" { 11 + show = false; 12 + } 13 + } 14 + 15 + if show{ 16 + window.get_webview_window("main").unwrap().show().unwrap(); 17 + } 6 18 }
+2
src/index.tsx
··· 1 1 /* @refresh reload */ 2 2 import { render } from "solid-js/web"; 3 3 4 + // TODO: Rewrite storage stuff localstorage is dumb. 5 + 4 6 declare global{ 5 7 interface Window { 6 8 CloseAllPopups: (() => void)[]