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

Method openRulesFolder

ChatView/ChatRootView.cpp:824–841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824void ChatRootView::openRulesFolder()
825{
826 auto project = ProjectExplorer::ProjectManager::startupProject();
827 if (!project) {
828 return;
829 }
830
831 QString projectPath = project->projectDirectory().toFSPathString();
832 QString rulesPath = QDir(projectPath).filePath(".qodeassist/rules");
833
834 QDir dir(rulesPath);
835 if (!dir.exists()) {
836 dir.mkpath(".");
837 }
838
839 QUrl url = QUrl::fromLocalFile(dir.absolutePath());
840 QDesktopServices::openUrl(url);
841}
842
843void ChatRootView::openSettings()
844{

Callers

nothing calls this directly

Calls 1

filePathMethod · 0.45

Tested by

no test coverage detected