Skip to content

Commit 46578e7

Browse files
committed
fix: Prevent error re-summoning an existing window without arguments
1 parent 358a3d0 commit 46578e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CompactGUI/Application.xaml.vb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ Class Application
3939
Using client = New NamedPipeClientStream(".", "CompactGUI", PipeDirection.Out)
4040
client.Connect()
4141
Using writer = New StreamWriter(client)
42-
writer.WriteLine(e.Args(0))
42+
If e.Args.Length > 0 Then
43+
writer.WriteLine(e.Args(0))
44+
End If
4345
End Using
4446
End Using
4547

0 commit comments

Comments
 (0)