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)
| 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. |
| 199 | func 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. |
no test coverage detected