(&mut self, command_id: CommandId, cx: &mut Context<Self>)
| 351 | } |
| 352 | } |
| 353 | |
| 354 | pub fn is_mounted(&self) -> bool { |
| 355 | self.is_open || self.closing_at.is_some() |
| 356 | } |
| 357 | |
| 358 | pub fn close(&mut self, cx: &mut Context<Self>) { |
| 359 | self.is_open = false; |
| 360 | self.closing_at = None; |