PluginSettingsComponentBase.restoreRecoveryCopy method
PluginSettingsComponentBase › restoreRecoveryCopy
Restores a recovery copy ofdata.json kept on this device: writes its record back to the file and reloads the settings from it.The settings in use are kept as a recovery copy of their own first, so a restore loses nothing either.
Signature:
restoreRecoveryCopy(id: string): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | string | The id of the copy, from {@link getRecoveryCopies}. |
Returns: Promise<void> — A Promise that resolves when the restored settings are loaded.