app: mark first window as the main one
This commit is contained in:
parent
100b961494
commit
c190f3f6f2
@ -31,6 +31,9 @@ func RunApp() {
|
|||||||
goxkcdreader := getApp()
|
goxkcdreader := getApp()
|
||||||
w := goxkcdreader.NewWindow(cmd.GetAppName())
|
w := goxkcdreader.NewWindow(cmd.GetAppName())
|
||||||
|
|
||||||
|
// mark this window as the main window
|
||||||
|
w.SetMaster()
|
||||||
|
|
||||||
centered := container.New(
|
centered := container.New(
|
||||||
layout.NewHBoxLayout(),
|
layout.NewHBoxLayout(),
|
||||||
layout.NewSpacer(),
|
layout.NewSpacer(),
|
||||||
|
Loading…
Reference in New Issue
Block a user