(self, msg)
| 389 | } |
| 390 | |
| 391 | def on_gen_error(self, msg): |
| 392 | self.stop_loading_anim() |
| 393 | self.gen_btn.setEnabled(True) |
| 394 | self.progress.setValue(0) |
| 395 | if "To debug, run the following command manually:" in msg: |
| 396 | parts = msg.split("To debug, run the following command manually:") |
| 397 | error_part = parts[0].strip() |
| 398 | cmd_part = parts[1].strip() |
| 399 | self.log_append('[Error] ' + error_part) |
| 400 | self.log_append('To debug, run the following command manually:') |
| 401 | self.log_append(cmd_part) |
| 402 | QMessageBox.critical(self, 'Build Failed', f"{error_part}\n\nTo debug, copy and run this command:\n{cmd_part}") |
| 403 | else: |
| 404 | self.log_append('[Error] ' + msg) |
| 405 | QMessageBox.critical(self, 'Error', msg) |
| 406 | |
| 407 | def on_forgery_changed(self): |
| 408 | enabled = self.forgery_enable_box.isChecked() |
nothing calls this directly
no test coverage detected