summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src-tauri/src/constants.rs
blob: 9d50d00e202579581785f60c909acd880bb1981f (plain)
1
2
3
4
5
6
7
8
9
10
use tauri_plugin_window_state::StateFlags;

pub const SETTINGS_STORE: &str = "opencode.settings.dat";
pub const DEFAULT_SERVER_URL_KEY: &str = "defaultServerUrl";
pub const WSL_ENABLED_KEY: &str = "wslEnabled";
pub const UPDATER_ENABLED: bool = option_env!("TAURI_SIGNING_PRIVATE_KEY").is_some();

pub fn window_state_flags() -> StateFlags {
    StateFlags::all() - StateFlags::DECORATIONS - StateFlags::VISIBLE
}