Skip to content

Commit

Permalink
fixed error handling options
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Hex committed Nov 17, 2024
1 parent e808296 commit 160eb2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion virtualization.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,9 @@ func (v *VirtualMachine) StartGraphicApplication(width, height float64, opts ...
}
defaultOpts := &startGraphicApplicationOptions{}
for _, opt := range opts {
opt(defaultOpts)
if err := opt(defaultOpts); err != nil {
return err
}
}
windowTitle := charWithGoString(defaultOpts.title)
defer windowTitle.Free()
Expand Down

0 comments on commit 160eb2e

Please sign in to comment.