MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / setRecentFilePath

Method setRecentFilePath

ChatView/ChatRootView.cpp:1044–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042}
1043
1044void ChatRootView::setRecentFilePath(const QString &filePath)
1045{
1046 if (m_recentFilePath == filePath) {
1047 return;
1048 }
1049
1050 if (auto registry = sessionFileRegistry()) {
1051 if (!m_recentFilePath.isEmpty()) {
1052 registry->release(m_recentFilePath);
1053 }
1054 if (!filePath.isEmpty()) {
1055 registry->lock(filePath);
1056 }
1057 }
1058
1059 m_recentFilePath = filePath;
1060 m_clientInterface->setChatFilePath(filePath);
1061 m_fileManager->setChatFilePath(filePath);
1062 emit chatFileNameChanged();
1063}
1064
1065bool ChatRootView::shouldIgnoreFileForAttach(const Utils::FilePath &filePath)
1066{

Callers

nothing calls this directly

Calls 4

releaseMethod · 0.80
lockMethod · 0.80
isEmptyMethod · 0.45
setChatFilePathMethod · 0.45

Tested by

no test coverage detected