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>)
| 288 | /// |
| 289 | /// Only sets the value if it hasn't been set already (first call wins). |
| 290 | pub fn set_parent_view(&mut self, view: impl Into<String>) { |
| 291 | if self.parent_view.is_none() { |
| 292 | self.parent_view = Some(view.into()); |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | /// Get the parent view name, if set. |
| 297 | pub fn parent_view(&self) -> Option<&str> { |