Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 12afcce

Browse files
Attempting to load and save EnableTraceLogging
1 parent d79b370 commit 12afcce

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/GitHub.Api/ApplicationManagerBase.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ protected void Initialize(IUIDispatcher uiDispatcher)
2929
SystemSettings = new SystemSettings(Environment, ApplicationInfo.ApplicationName);
3030

3131
LocalSettings.Initialize();
32+
3233
UserSettings.Initialize();
34+
35+
#if !DEVELOPER_BUILD
36+
Logging.TracingEnabled = UserSettings.Get("EnableTraceLogging", false);
37+
#endif
38+
3339
SystemSettings.Initialize();
3440

3541
Platform = new Platform(Environment, FileSystem, uiDispatcher);

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/SettingsView.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,8 @@ private void OnLoggingSettingsGui()
676676
if (EditorGUI.EndChangeCheck())
677677
{
678678
Logging.TracingEnabled = traceLogging;
679+
EntryPoint.AppManager.UserSettings.Set("EnableTraceLogging", traceLogging);
680+
679681
GUI.FocusControl(null);
680682
}
681683

0 commit comments

Comments
 (0)