A photo manager for VRChat.
0
fork

Configure Feed

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

at a2d2654659e437edda0a214168b874e47b2ab11f 30 lines 729 B view raw
1use std::env; 2use tauri::{ Emitter, Manager, State }; 3 4use crate::frontend_calls::config::Config; 5 6use super::config::get_config_value_string; 7 8#[tauri::command] 9pub fn close_splashscreen( window: tauri::Window, config: State<Config> ) { 10 let args: Vec<String> = env::args().collect(); 11 12 let mut show = true; 13 for arg in args { 14 if arg == "--background" { 15 show = false; 16 } 17 } 18 19 let value: String = match get_config_value_string("start-in-bg".to_owned(), config) { Some(val) => val, None => "false".to_owned() }; 20 if value == "true"{ 21 show = false; 22 } 23 24 if show { 25 let webview = window.get_webview_window("main").unwrap(); 26 27 webview.show().unwrap(); 28 webview.emit("show-window", 0).unwrap(); 29 } 30}