Revert "Add ability to take screenshots in-app and insert them into the page"

This reverts commit 34349c6133.
This commit is contained in:
Miguel Jacq 2025-11-18 16:21:11 +11:00
parent c2b2eee022
commit a4d47edba5
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
8 changed files with 12 additions and 204 deletions

View file

@ -1,6 +1,8 @@
from __future__ import annotations
import importlib.metadata
from pathlib import Path
import requests
from PySide6.QtWidgets import (
@ -30,6 +32,8 @@ 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"))
@ -44,7 +48,9 @@ class BugReportDialog(QDialog):
# Buttons: Cancel / Send
button_box = QDialogButtonBox(QDialogButtonBox.Cancel)
button_box.addButton(strings._("send"), QDialogButtonBox.AcceptRole)
self.send_button = button_box.addButton(
strings._("send"), QDialogButtonBox.AcceptRole
)
button_box.accepted.connect(self._send)
button_box.rejected.connect(self.reject)
layout.addWidget(button_box)