Added Windows-related initialization things.
This commit is contained in:
parent
2746e0e315
commit
1a15c6cd4d
@ -145,6 +145,11 @@ func (m *MainWindow) Initialize() {
|
|||||||
|
|
||||||
m.window.Add(m.vbox)
|
m.window.Add(m.vbox)
|
||||||
|
|
||||||
|
// Additional Windows-related initialization.
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
m.initializeWin()
|
||||||
|
}
|
||||||
|
|
||||||
m.window.ShowAll()
|
m.window.ShowAll()
|
||||||
|
|
||||||
// Launch events.
|
// Launch events.
|
||||||
|
10
ui/mainwindow_init_win.go
Normal file
10
ui/mainwindow_init_win.go
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
package ui
|
||||||
|
|
||||||
|
import (
|
||||||
|
// other
|
||||||
|
"github.com/couchbase/goutils/platform"
|
||||||
|
)
|
||||||
|
|
||||||
|
func (m *MainWindow) initializeWin() {
|
||||||
|
platform.HideConsole(true)
|
||||||
|
}
|
Reference in New Issue
Block a user