Added Windows-related initialization things.

This commit is contained in:
Stanislav Nikitin 2016-10-10 20:11:41 +05:00
parent 2746e0e315
commit 1a15c6cd4d
2 changed files with 15 additions and 0 deletions

View File

@ -145,6 +145,11 @@ func (m *MainWindow) Initialize() {
m.window.Add(m.vbox)
// Additional Windows-related initialization.
if runtime.GOOS == "windows" {
m.initializeWin()
}
m.window.ShowAll()
// Launch events.

10
ui/mainwindow_init_win.go Normal file
View File

@ -0,0 +1,10 @@
package ui
import (
// other
"github.com/couchbase/goutils/platform"
)
func (m *MainWindow) initializeWin() {
platform.HideConsole(true)
}