diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index eb49d60..54dc6e3 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -59,6 +59,10 @@ fn main() { // .plugin(tauri_plugin_store::Builder::default().build()) // .plugin(tauri_plugin_updater::Builder::new().build()) .setup(|app| { + // Deep Link + #[cfg(desktop)] + app.deep_link().register("cstb")?; + // Tray #[cfg(all(desktop))] { @@ -80,11 +84,6 @@ fn main() { // apply_blur(&window, Some((18, 18, 18, 0))) // .expect("Unsupported platform! 'apply_blur' is only supported on Windows"); - - // Deep Link - #[cfg(desktop)] - app.deep_link().register("cstb")?; - Ok(()) }) .invoke_handler(tauri::generate_handler![ diff --git a/src/components/cstb/LaunchOption.tsx b/src/components/cstb/LaunchOption.tsx index c30aa1d..015e034 100644 --- a/src/components/cstb/LaunchOption.tsx +++ b/src/components/cstb/LaunchOption.tsx @@ -20,7 +20,7 @@ const LaunchOption = () => { {tool.state.launchOptions.map((option, index) => ( - tool.setLaunchIndex(index)}> + tool.setLaunchIndex(index)}> {index + 1} ))} diff --git a/src/components/cstb/Prepare.tsx b/src/components/cstb/Prepare.tsx index 20f0f4a..ecaeb5e 100644 --- a/src/components/cstb/Prepare.tsx +++ b/src/components/cstb/Prepare.tsx @@ -144,7 +144,7 @@ export function Prepare() { -

{links || 'no'}

+ {links.length > 0 &&

{links}

}