Load the last-used sandbox name for a gateway from persistent storage. Returns `None` if no last sandbox has been set.
(gateway: &str)
| 288 | /// |
| 289 | /// Returns `None` if no last sandbox has been set. |
| 290 | pub fn load_last_sandbox(gateway: &str) -> Option<String> { |
| 291 | last_sandbox_path(gateway) |
| 292 | .ok() |
| 293 | .as_deref() |
| 294 | .and_then(read_nonempty_trimmed) |
| 295 | } |
| 296 | |
| 297 | /// Clear the last-used sandbox record for a gateway if it matches the given name. |
| 298 | /// |