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>)
| 413 | /// |
| 414 | /// Only sets the value if it hasn't been set already (first call wins). |
| 415 | pub fn set_parent_view(&mut self, view: impl Into<String>) { |
| 416 | if self.parent_view.is_none() { |
| 417 | self.parent_view = Some(view.into()); |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | /// Get the parent view name, if set. |
| 422 | pub fn parent_view(&self) -> Option<&str> { |