| 1005 | } |
| 1006 | |
| 1007 | void ChatRootView::onAppendLinkFileFromEditor(Core::IEditor *editor) |
| 1008 | { |
| 1009 | if (isChatEditor(editor)) { |
| 1010 | return; |
| 1011 | } |
| 1012 | |
| 1013 | if (auto document = editor->document(); document && isSyncOpenFiles()) { |
| 1014 | QString filePath = document->filePath().toFSPathString(); |
| 1015 | if (!m_linkedFiles.contains(filePath) && !shouldIgnoreFileForAttach(document->filePath())) { |
| 1016 | m_linkedFiles.append(filePath); |
| 1017 | emit linkedFilesChanged(); |
| 1018 | } |
| 1019 | } |
| 1020 | } |
| 1021 | |
| 1022 | void ChatRootView::onEditorCreated(Core::IEditor *editor, const Utils::FilePath &filePath) |
| 1023 | { |
nothing calls this directly
no test coverage detected