Documentation
¶
Index ¶
- type Panel
- func (p *Panel) Cancel()
- func (p *Panel) Dirty() bool
- func (p *Panel) Draft() domain.GlobalConfig
- func (p *Panel) Layout(c *ui.Ctx) ui.View
- func (p *Panel) LoadDefaults()
- func (p *Panel) PathWarn() bool
- func (p *Panel) Prepare()
- func (p *Panel) Save() error
- func (p *Panel) SetSecrets(d secretui.Deps)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Panel ¶
type Panel struct {
// contains filtered or unexported fields
}
Panel is the settings dialog body. Open it with c.Dialogs().Show(DialogOpts{Body: panel.Layout, ...}).
func New ¶
func New(lang *langsrv.Service, scripts *scriptsrv.Service, install func(language string), onAppearance func(domain.GlobalConfigSpec)) *Panel
New builds the settings panel. install installs the default language server for a language (config key); it backs the Install buttons.
func (*Panel) Draft ¶
func (p *Panel) Draft() domain.GlobalConfig
func (*Panel) LoadDefaults ¶
func (p *Panel) LoadDefaults()
func (*Panel) SetSecrets ¶
SetSecrets wires the secret key flows into the Security category.
Click to show internal directories.
Click to hide internal directories.