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

Method autosaveFilePath

ChatView/ChatHistoryStore.cpp:72–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72QString ChatHistoryStore::autosaveFilePath(const QString &recentFilePath) const
73{
74 if (!recentFilePath.isEmpty()) {
75 return recentFilePath;
76 }
77
78 QString dir = historyDir();
79 if (dir.isEmpty()) {
80 return QString();
81 }
82
83 return QDir(dir).filePath(suggestedFileName() + ".json");
84}
85
86QString ChatHistoryStore::autosaveFilePath(
87 const QString &recentFilePath, const QString &firstMessage, bool hasImageAttachments) const

Callers 1

getAutosaveFilePathMethod · 0.80

Calls 2

isEmptyMethod · 0.45
filePathMethod · 0.45

Tested by

no test coverage detected