constants.rs 414 B

12345678910
  1. use tauri_plugin_window_state::StateFlags;
  2. pub const SETTINGS_STORE: &str = "opencode.settings.dat";
  3. pub const DEFAULT_SERVER_URL_KEY: &str = "defaultServerUrl";
  4. pub const WSL_ENABLED_KEY: &str = "wslEnabled";
  5. pub const UPDATER_ENABLED: bool = option_env!("TAURI_SIGNING_PRIVATE_KEY").is_some();
  6. pub fn window_state_flags() -> StateFlags {
  7. StateFlags::all() - StateFlags::DECORATIONS - StateFlags::VISIBLE
  8. }