Skip to content

Commit

Permalink
Fix compile error with generated code for additional windows
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Nov 23, 2024
1 parent 480ed5b commit d9d00e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/gui/go.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ type %s struct {
%s
}
func new%sGUI() *gui {
func new%sGUI() *%s {
return &gui{}
}
Expand All @@ -95,7 +95,7 @@ func (g *%s) makeUI() fyne.CanvasObject {
strings.Join(pkgs, "\n"),
guiName,
strings.Join(vars, "\n"),
guiNameUpper, guiName,
guiNameUpper, guiName, guiName,
setup, main)

formatted, err := format.Source([]byte(code))
Expand Down

0 comments on commit d9d00e5

Please sign in to comment.