mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
feature<Issue>: add preference setting to enable/disable crash report
This commit is contained in:
parent
7a06756fe9
commit
780b4b9d18
5 changed files with 33 additions and 17 deletions
|
@ -24,6 +24,8 @@ namespace SourceGit.Models {
|
|||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
public static void Create(System.Exception e) {
|
||||
if (!Preference.Instance.General.EnableCrashReport) return;
|
||||
|
||||
try {
|
||||
var issue = new Issue();
|
||||
issue.AccessToken = "d0d56410f13a3826b87fb0868d5a26ce"; // 这是我个人的Token,仅启用ISSUE创建功能,请不要使用
|
||||
|
|
|
@ -72,6 +72,11 @@ namespace SourceGit.Models {
|
|||
/// 启用自动拉取远程变更(每10分钟一次)
|
||||
/// </summary>
|
||||
public bool AutoFetchRemotes { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用崩溃上报
|
||||
/// </summary>
|
||||
public bool EnableCrashReport { get; set; } = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue