Other: reactive show on startup
This commit is contained in:
@ -37,6 +37,8 @@ type QMLBackend struct {
|
||||
_ func() `slot:"quit"`
|
||||
_ func() `slot:"restart"`
|
||||
|
||||
_ bool `property:showOnStartup`
|
||||
|
||||
_ bool `property:dockIconVisible`
|
||||
|
||||
_ QMLUserModel `property:"users"`
|
||||
@ -144,6 +146,10 @@ func (q *QMLBackend) setup(f *FrontendQt) {
|
||||
q.ConnectRestart(f.restart)
|
||||
q.ConnectGuiReady(f.guiReady)
|
||||
|
||||
q.ConnectIsShowOnStartup(func() bool {
|
||||
return f.showOnStartup
|
||||
})
|
||||
|
||||
q.ConnectIsDockIconVisible(func() bool {
|
||||
return dockIcon.GetDockIconVisibleState()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user