From 0889e3cac47a9a759d525113ad4d0153258e4589 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Fri, 6 May 2016 20:39:44 +0200 Subject: [PATCH] Fix UI code generation using ui2walk. --- connectdialog_windows.go | 1 - dialog_windows.go | 5 +---- main_windows.go | 3 +++ 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/connectdialog_windows.go b/connectdialog_windows.go index a3ddd54..f5d9d43 100644 --- a/connectdialog_windows.go +++ b/connectdialog_windows.go @@ -1,5 +1,4 @@ //+build windows -//go:generate ui2walk connectdialog.ui package main diff --git a/dialog_windows.go b/dialog_windows.go index 0088616..28cbf84 100644 --- a/dialog_windows.go +++ b/dialog_windows.go @@ -1,11 +1,8 @@ //+build windows -//go:generate ui2walk dialog.ui package main -import ( - "github.com/lxn/walk" -) +import "github.com/lxn/walk" type mainDialog struct { *walk.MainWindow diff --git a/main_windows.go b/main_windows.go index 77d4db5..4f24f16 100644 --- a/main_windows.go +++ b/main_windows.go @@ -1,6 +1,9 @@ //+build windows + package main +//go:generate ui2walk + import ( "fmt" "log"