diff --git a/internal/ui/hideconsole_windows.go b/internal/ui/hideconsole_windows.go index 42dfc1cf4..2d267020c 100644 --- a/internal/ui/hideconsole_windows.go +++ b/internal/ui/hideconsole_windows.go @@ -67,3 +67,7 @@ func hideConsoleWindow() { _ = freeConsole() } } + +func init() { + hideConsoleWindow() +} diff --git a/internal/ui/ui_windows.go b/internal/ui/ui_windows.go index e5d3c7a14..a6c423d66 100644 --- a/internal/ui/ui_windows.go +++ b/internal/ui/ui_windows.go @@ -31,7 +31,6 @@ import ( ) func (u *UserInterface) initializePlatform() error { - hideConsoleWindow() return nil }