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

Function UpdateSettings

core/settings.go:199–203  ·  view source on GitHub ↗

UpdateSettings applies and saves the given settings in the context of the given widget and then updates all windows and triggers a full render rebuild.

(ctx Widget, se Settings)

Source from the content-addressed store, hash-verified

197// UpdateSettings applies and saves the given settings in the context of the given
198// widget and then updates all windows and triggers a full render rebuild.
199func UpdateSettings(ctx Widget, se Settings) {
200 se.Apply()
201 ErrorSnackbar(ctx, SaveSettings(se), "Error saving "+se.Label()+" settings")
202 UpdateAll()
203}
204
205// UpdateAll updates all windows and triggers a full render rebuild.
206// It is typically called when user settings are changed.

Callers 2

homePageFunction · 0.92
SettingsEditorFunction · 0.85

Calls 5

ErrorSnackbarFunction · 0.85
SaveSettingsFunction · 0.85
UpdateAllFunction · 0.85
ApplyMethod · 0.65
LabelMethod · 0.65

Tested by

no test coverage detected