diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-23 02:30:25 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-23 02:30:25 +0300 |
| commit | 09d9ddde97d5def9107c9ad6a0939bf12703203e (patch) | |
| tree | 27a1a7aaf87d40412034ca79c78cd9ffdb052573 /src/config.rs | |
| parent | 3de6ea799965a7d2aad0f7db2f23f54cd24cb039 (diff) | |
fix: preserve local keybindings in remote sessions
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 33558b4b..d874455e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -36,6 +36,12 @@ pub(crate) fn app_dir_name() -> &'static str { io::app_dir_name() } +#[cfg(test)] +pub(crate) fn test_config_env_lock() -> &'static std::sync::Mutex<()> { + static LOCK: std::sync::OnceLock<std::sync::Mutex<()>> = std::sync::OnceLock::new(); + LOCK.get_or_init(|| std::sync::Mutex::new(())) +} + impl Config { pub fn should_show_onboarding(&self) -> bool { self.onboarding.unwrap_or(true) |
