MCPcopy Create free account
hub / github.com/cogentcore/core / SettingsWindow

Function SettingsWindow

core/settingseditor.go:34–41  ·  view source on GitHub ↗

SettingsWindow opens a window for editing user settings.

()

Source from the content-addressed store, hash-verified

32
33// SettingsWindow opens a window for editing user settings.
34func SettingsWindow() { //types:add
35 if RecycleMainWindow(&AllSettings) {
36 return
37 }
38 d := NewBody("Settings").SetData(&AllSettings)
39 SettingsEditor(d)
40 d.NewWindow().SetCloseOnBack(true).Run()
41}
42
43// SettingsEditor adds to the given body an editor of user settings.
44func SettingsEditor(b *Body) {

Callers

nothing calls this directly

Calls 7

RecycleMainWindowFunction · 0.85
NewBodyFunction · 0.85
SettingsEditorFunction · 0.85
SetCloseOnBackMethod · 0.80
NewWindowMethod · 0.65
SetDataMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected