Set the parent view name (the view that was current when this session started). Only sets the value if it hasn't been set already (first call wins).
(&mut self, view: impl Into<String>)
| 282 | /// |
| 283 | /// Only sets the value if it hasn't been set already (first call wins). |
| 284 | pub fn set_parent_view(&mut self, view: impl Into<String>) { |
| 285 | if self.parent_view.is_none() { |
| 286 | self.parent_view = Some(view.into()); |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | /// Get the parent view name, if set. |
| 291 | pub fn parent_view(&self) -> Option<&str> { |