Add ability to take screenshots in-app and insert them into the page
All checks were successful
CI / test (push) Successful in 3m21s
Lint / test (push) Successful in 28s
Trivy / test (push) Successful in 21s

This commit is contained in:
Miguel Jacq 2025-11-17 17:43:23 +11:00
parent eedf48dc6a
commit 34349c6133
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
8 changed files with 204 additions and 12 deletions

View file

@ -1,8 +1,6 @@
from __future__ import annotations
import importlib.metadata
from pathlib import Path
import requests
from PySide6.QtWidgets import (
@ -32,8 +30,6 @@ class BugReportDialog(QDialog):
super().__init__(parent)
self.setWindowTitle(strings._("report_a_bug"))
self._attachment_path: Path | None = None
layout = QVBoxLayout(self)
header = QLabel(strings._("bug_report_explanation"))
@ -48,9 +44,7 @@ class BugReportDialog(QDialog):
# Buttons: Cancel / Send
button_box = QDialogButtonBox(QDialogButtonBox.Cancel)
self.send_button = button_box.addButton(
strings._("send"), QDialogButtonBox.AcceptRole
)
button_box.addButton(strings._("send"), QDialogButtonBox.AcceptRole)
button_box.accepted.connect(self._send)
button_box.rejected.connect(self.reject)
layout.addWidget(button_box)