(&mut self)
| 438 | pub(super) fn close_active_path(&mut self) { |
| 439 | if let Some(path) = self.active_path() { |
| 440 | self.close_path(&path); |
| 441 | } |
| 442 | } |
| 443 | |
| 444 | fn block_open_folder_for_dirty_documents(&mut self) -> bool { |
| 445 | if self.workspace.dirty_documents().next().is_none() { |
| 446 | return false; |
| 447 | } |
| 448 | self.status_message = |
| 449 | Some("save or close unsaved files before opening a folder".to_owned()); |
| 450 | true |
| 451 | } |