Load the active gateway name from persistent storage. Returns `None` if no active gateway has been set. Falls back to the system-level active gateway file when no per-user selection exists, so installer-provided defaults can take effect on a fresh system.
()
| 271 | /// system-level active gateway file when no per-user selection exists, so |
| 272 | /// installer-provided defaults can take effect on a fresh system. |
| 273 | pub fn load_active_gateway() -> Option<String> { |
| 274 | load_user_active_gateway().or_else(|| read_gateway_name(&system_active_gateway_path())) |
| 275 | } |
| 276 | |
| 277 | /// Save the last-used sandbox name for a gateway to persistent storage. |
| 278 | pub fn save_last_sandbox(gateway: &str, sandbox: &str) -> Result<()> { |
no test coverage detected