A free, open source, and extensible speech-to-text application that works completely offline.
fix Windows build?
CJ Paisef607db260df
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rsindex b8b961a1..3a57cdbe 100644--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@ -99,17 +99,19 @@ pub fn run() {.on_window_event(|window, event| match event {tauri::WindowEvent::CloseRequested { api, .. } => {#[cfg(target_os = "macos")]- let res = window- .app_handle()- .set_activation_policy(tauri::ActivationPolicy::Accessory);- if let Err(e) = res {- println!("Failed to set activation policy: {}", e);- }+ {+ let res = window+ .app_handle()+ .set_activation_policy(tauri::ActivationPolicy::Accessory);+ if let Err(e) = res {+ println!("Failed to set activation policy: {}", e);+ }- api.prevent_close();+ api.prevent_close();- // TODO may be different on windows, this works for macos- tauri::AppHandle::hide(window.app_handle()).unwrap();+ // TODO may be different on windows, this works for macos+ tauri::AppHandle::hide(window.app_handle()).unwrap();+ }}_ => {}})