From 373e61d054c5ad18347a71060c1490bfc048b40f Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 28 Jan 2024 22:05:47 +0900 Subject: [PATCH] internal/ui: call hideConsole at init --- internal/ui/hideconsole_windows.go | 4 ++++ internal/ui/ui_windows.go | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) 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 }