Esempio n. 1
0
func (p *Projects) OnComplete(onComplete func(controller.Executor)) {
	opener := commands.NewProjectOpener(p.theme, p.projectFrame)
	p.projects.OnSelectionChanged(func(selected gxui.AdapterItem) {
		opener.SetProject(selected.(settings.Project))
		onComplete(opener)
	})
}
Esempio n. 2
0
func (p *Projects) OnComplete(onComplete func(commands.Command)) {
	opener := commands.NewProjectOpener(p.driver, p.theme)
	p.projects.OnSelectionChanged(func(selected gxui.AdapterItem) {
		opener.SetProject(selected.(settings.Project).Name)
		onComplete(opener)
	})
}