(self)
| 2121 | self.resultTextEdit.setPlainText(self.tr("AI 分析失败:\n") + text) |
| 2122 | |
| 2123 | def manualAnalyzeError(self): |
| 2124 | if self.errTextEdit.toPlainText() == "": |
| 2125 | return |
| 2126 | if not self.switchAnalyzeProviderBtn.isChecked(): |
| 2127 | localHandleResult = ServerErrorHandler.detect(self.errTextEdit.toPlainText()) |
| 2128 | self.resultTextEdit.setPlainText( |
| 2129 | localHandleResult if localHandleResult else "未检测到本地分析模块可用解决方案。" |
| 2130 | ) |
| 2131 | else: |
| 2132 | if not self._ensureAIAnalyzeConfig(): |
| 2133 | return |
| 2134 | self._startAIAnalyze(self.errTextEdit.toPlainText()) |
nothing calls this directly
no test coverage detected