# Saving the Config

You can define the code that runs when the user clicks **"Save"** using the following method.

```java
[...]
builder.setSavingRunnable(() -> {
    // Serialise the config into the config file. This will be called last after all variables are updated.
});
```
