[CrashReporting] Document reporting modes on the enum per review

This commit is contained in:
Lukas Brübach 2026-10-18 13:10:41 +02:00 • committed by GitHub
parent 88b8f3f4ee
commit 1da0c6c7a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View file

@ -133,8 +133,7 @@ GeneralSettingsPage::GeneralSettingsPage()
versionGroupBox = new QGroupBox;
versionGroupBox->setLayout(versionGrid);
// crash reporting consent (lives in personal.ini, not debug.ini): Ask shows the crash dialog
// after an unclean exit, AlwaysSend uploads without asking, NeverSend stays silent.
// crash reporting consent (stored in personal.ini, not debug.ini)
crashReportingBox.addItem(""); // texts set in retranslateUi
crashReportingBox.addItem("");
crashReportingBox.addItem("");

View file

@ -26,9 +26,9 @@ public:
enum class CrashReportingMode
{
Ask = 0,
AlwaysSend = 1,
NeverSend = 2
Ask = 0, ///< Show the crash-report dialog after an unclean exit.
AlwaysSend = 1, ///< Upload crash reports without asking.
NeverSend = 2 ///< Never upload; stay silent.
};
[[nodiscard]] CrashReportingMode getCrashReportingMode() const;