| 822 | } |
| 823 | |
| 824 | void 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 | |
| 843 | void ChatRootView::openSettings() |
| 844 | { |