Skip to content

Commit 7f77279

Browse files
Ensured saved layout title updates
1 parent e7bc7d7 commit 7f77279

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Packages/com.unity.inputsystem/InputSystem/Editor/Debugger/InputDebuggerWindow.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public static void CreateOrShow()
5050
{
5151
s_Instance = GetWindow<InputDebuggerWindow>();
5252
s_Instance.Show();
53-
s_Instance.titleContent = new GUIContent("Input Debugger");
5453
}
5554
else
5655
{
@@ -82,6 +81,11 @@ public static void Disable()
8281
}
8382
}
8483

84+
private void OnEnable()
85+
{
86+
titleContent = new GUIContent("Input Debugger");
87+
}
88+
8589
private void OnDeviceChange(InputDevice device, InputDeviceChange change)
8690
{
8791
// Update tree if devices are added or removed.

0 commit comments

Comments
 (0)