SettingsWindow opens a window for editing user settings.
()
| 32 | |
| 33 | // SettingsWindow opens a window for editing user settings. |
| 34 | func 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. |
| 44 | func SettingsEditor(b *Body) { |
nothing calls this directly
no test coverage detected