UI for enabling crash-reporting in the launcher
This commit is contained in:
parent
79221a6225
commit
a24301f746
2 changed files with 13 additions and 1 deletions
|
@ -116,11 +116,22 @@ Item {
|
|||
hidden: _osName !== "win"
|
||||
keywords: ["console", "terminal", "log", "debug"]
|
||||
setting: "console"
|
||||
},
|
||||
|
||||
SettingCheckbox {
|
||||
id: enableCrashReporting
|
||||
label: qsTr("Enable crash & error reporting")
|
||||
description: qsTr("Send crash and error reports to the development team for analysis.")
|
||||
defaultValue: true
|
||||
hidden: (_osName !== "win") && (_osName !== "mac")
|
||||
keywords: ["crash", "report", "telemetry"]
|
||||
setting: "enable-sentry"
|
||||
}
|
||||
]
|
||||
|
||||
onApply: {
|
||||
if (!showConsoleWin.hidden && showConsoleWin.checked) _config.setArg("console")
|
||||
if (!showConsoleWin.hidden && showConsoleWin.checked) _config.setArg("console");
|
||||
if (!enableCrashReporting.hidden && enableCrashReporting.checked) _config.setArg("enable-sentry");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1629,6 +1629,7 @@ struct OptionDesc {
|
|||
{"language", true, OPTION_IGNORE, "", false, "", 0 },
|
||||
{"console", false, OPTION_FUNC, "", false, "", fgOptConsole },
|
||||
{"launcher", false, OPTION_IGNORE, "", false, "", 0 },
|
||||
{"enable-sentry", false, OPTION_IGNORE, "", false, "", nullptr },
|
||||
{"allow-nasal-from-sockets", false, OPTION_IGNORE, "", false, "", 0 },
|
||||
{"disable-rembrandt", false, OPTION_BOOL, "/sim/rendering/rembrandt/enabled", false, "", 0 },
|
||||
{"enable-rembrandt", false, OPTION_BOOL, "/sim/rendering/rembrandt/enabled", true, "", 0 },
|
||||
|
|
Loading…
Reference in a new issue