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"
|
hidden: _osName !== "win"
|
||||||
keywords: ["console", "terminal", "log", "debug"]
|
keywords: ["console", "terminal", "log", "debug"]
|
||||||
setting: "console"
|
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: {
|
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 },
|
{"language", true, OPTION_IGNORE, "", false, "", 0 },
|
||||||
{"console", false, OPTION_FUNC, "", false, "", fgOptConsole },
|
{"console", false, OPTION_FUNC, "", false, "", fgOptConsole },
|
||||||
{"launcher", false, OPTION_IGNORE, "", false, "", 0 },
|
{"launcher", false, OPTION_IGNORE, "", false, "", 0 },
|
||||||
|
{"enable-sentry", false, OPTION_IGNORE, "", false, "", nullptr },
|
||||||
{"allow-nasal-from-sockets", false, OPTION_IGNORE, "", false, "", 0 },
|
{"allow-nasal-from-sockets", false, OPTION_IGNORE, "", false, "", 0 },
|
||||||
{"disable-rembrandt", false, OPTION_BOOL, "/sim/rendering/rembrandt/enabled", false, "", 0 },
|
{"disable-rembrandt", false, OPTION_BOOL, "/sim/rendering/rembrandt/enabled", false, "", 0 },
|
||||||
{"enable-rembrandt", false, OPTION_BOOL, "/sim/rendering/rembrandt/enabled", true, "", 0 },
|
{"enable-rembrandt", false, OPTION_BOOL, "/sim/rendering/rembrandt/enabled", true, "", 0 },
|
||||||
|
|
Loading…
Reference in a new issue