| 986 | } |
| 987 | |
| 988 | void ChatRootView::onEditorAboutToClose(Core::IEditor *editor) |
| 989 | { |
| 990 | if (isChatEditor(editor)) { |
| 991 | return; |
| 992 | } |
| 993 | |
| 994 | if (auto document = editor->document(); document && isSyncOpenFiles()) { |
| 995 | QString filePath = document->filePath().toFSPathString(); |
| 996 | m_linkedFiles.removeOne(filePath); |
| 997 | emit linkedFilesChanged(); |
| 998 | } |
| 999 | |
| 1000 | if (editor) { |
| 1001 | m_currentEditors.removeOne(editor); |
| 1002 | } |
| 1003 | |
| 1004 | emit openFilesChanged(); |
| 1005 | } |
| 1006 | |
| 1007 | void ChatRootView::onAppendLinkFileFromEditor(Core::IEditor *editor) |
| 1008 | { |
nothing calls this directly
no test coverage detected