Skip to content

Commit b84a6c3

Browse files
committed
Update comment
1 parent 8e1d2f3 commit b84a6c3

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/InputActionsEditorWindow.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,8 @@ private void CreateGUI() // Only domain reload
209209

210210
if (asset == null)
211211
{
212-
// The persisted asset GUID can resolve to no asset when the window layout is
213-
// restored in a different project. Close quietly instead of throwing, but defer
214-
// the close: calling Close() synchronously here tears down the window's panel
215-
// while CreateGUI runs inside the UITK repaint, which then null-refs on repaint.
212+
// Can happen when an asset is deleted while the window is open.
213+
// Delay the closure to avoid null-refs on repaint.
216214
EditorApplication.delayCall += Close;
217215
return;
218216
}

0 commit comments

Comments
 (0)