(&mut self)
| 320 | }, |
| 321 | ) |
| 322 | .detach(); |
| 323 | |
| 324 | self.input_state = Some(input_state); |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | pub fn toggle(&mut self, window: &mut Window, cx: &mut Context<Self>) { |
| 329 | self.close_epoch = self.close_epoch.wrapping_add(1); |
| 330 | self.closing_at = None; |
| 331 | self.pending_command = None; |
| 332 | self.is_open = true; |